2019-09-20 - hschneider, Admin
Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.
XMail Forum · Newbies read here ! All about SMTP,MX-Records,DNS etc. | Help Search Members Calendar |
Welcome Guest ( Log In | Register ) | Resend Validation Email |
SuperCiccio |
Posted: Sep 9 2009, 09:13 AM
|
Newbie Group: Members Posts: 2 Member No.: 2473 Joined: 20-March 07 |
How can I forward all mail for a domain to another server?
In other words, all mails directed to domain mydomain.com have to be redirected/forwarded to another server at ip x.y.z.w. If I write the following line in SMTPFWD.TAB: "mydomain.com" "x.y.z.w" for a domain that is managed by XMail, than the mails are delivered locally. If I write that line for a domain that isn't managed by XMail, than I got the error 550 Relay denied What am I doing wrong? Thanks |
jobber_jobber |
Posted: Sep 11 2009, 07:48 PM
|
Newbie Group: Members Posts: 19 Member No.: 1307 Joined: 13-September 04 |
Hi,
I'm no expert, but the usual starting point is to check for a <TAB> character between the two values, and make sure it's not a <SPACE> i.e. "mydomain.com"<TAB>"x.y.z.w" Hope that helps, Regards |
SuperCiccio |
Posted: Sep 11 2009, 10:36 PM
|
Newbie Group: Members Posts: 2 Member No.: 2473 Joined: 20-March 07 |
Yes, I used tabs
|
Sob |
Posted: Sep 12 2009, 11:22 PM
|
Member Group: Members Posts: 53 Member No.: 2881 Joined: 19-April 08 |
I believe that you need to set up custom domain with smtprelay command:
http://www.xmailserver.org/Readme.html#cus...mail_processing |
jobber_jobber |
Posted: Sep 15 2009, 09:16 PM
|
Newbie Group: Members Posts: 19 Member No.: 1307 Joined: 13-September 04 |
I've had another look, and I think what you might need is a Domain mailproc.tab.
Check out the manual for mailproc.tab under the section: [SMTPRELAY] http://www.xmailserver.org/Readme.html#mailproc_tab That looks like it will send all mail received on your domain to another SMTP gateway. The SMTPFWD.TAB seems to be used for sending mail to specific SMTP servers for specific domains, and doesn't apply to receiving mail. Hope this helps |