XMailforum is a readonly knowledge archive now.

Registering as a new user or answering posts is not possible anymore.

Might the force be with you, to find here what you are looking for.

2019-09-20 - hschneider, Admin

Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.

XMail Forum [Powered by Invision Power Board]
Printable Version of Topic
Click here to view this topic in its original format
XMail Forum > Documentation and Knowledge Base > Configuring Xmail As An External Gateway


Posted by: randal Jun 26 2003, 06:51 PM
I am really considering using XMail as our externail mailgateway at the ISP I work for, particularly because it's one of the few windows solutions that can utilize spamassassin. We currently host email for about 140 domains, and I would like email to flow as follows:

internet.host --> xmailgateway.hpi.net --> mail.hpi.net

when our customers send mail, it will go ...

our.customer --> mail.hpi.net --> internet

mail.hpi.net is our existing Mailsite Server, with about 2500 mail boxes on it. *None* of those 2500 mail accounts will send mail through xmail -- the xmail server is going to be used as just an incoming spam filter.

I figured that I should setup the smtpfwd.tab to be

"domain.tld" "mail.hpi.net"

140 lines of that, with each of our domains in the domain.tld spot, and that would work. I tried this, and it gave me relaying denied errors (sort expected this). I then put in all of our domains in the domains.tab file, but it gives mailbox unavailable errors (as I have not put all of our users into the mailusers.tab file). If I open up relaying via the smtprelay.tab file, everything works as planned, but then I'm open for relaying.

The only thing I have not tested is opening up the relay for everybody, and then setting the smtpgw.tab file to forward all mail to our internal mail server.

Is there a "correct" way to setup XMail as an external mail gateway? I *REALLY* don't want to put a list of all our users on the xmail server (huge PITA to keep up to date), but really want to use xmail.

thanks,
randal


Posted by: hschneider Jun 26 2003, 09:49 PM
Hi,

- clear smtpfwd.tab and smtpgw.tab
- Create a file named xmailgateway.hpi.net.tab inside MailRoot/custdomains
- Inside that file enter "smtprelay"[TAB]"mail.hpi.net"[NEWLINE]

So mails addressed to xmailgateway are forwarded to mail.hpi.net -- this should do that job.



Posted by: randal Jun 26 2003, 09:55 PM
Yea, I found something in a mailing list thread somewhere that said to use domain.tab files ... so I looked that up and found out that if you put in a domain.tld.tab in the /mailroot/custdomains directory, it'll process those files -- which allows you to do an smtprelay.

So now, I just build a file (domain.tld.tab) in that directory for each domain, and put in the single line:
"smtprelay" "mail.hpi.net"
and it works -- and it's even easy to script! smile.gif

thank you for the prompt response -- on to conquering spamassassin!
randal

Posted by: hschneider Jun 26 2003, 11:17 PM
Fine! cool.gif

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)