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 -> Forward All Mail For A Domain

Reply to this topicStart new topicStart Poll

> Forward All Mail For A Domain
SuperCiccio
Posted: Sep 9 2009, 09:13 AM
Quote Post


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
PMEmail Poster
Top
jobber_jobber
Posted: Sep 11 2009, 07:48 PM
Quote Post


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
PMEmail Poster
Top
SuperCiccio
Posted: Sep 11 2009, 10:36 PM
Quote Post


Newbie
*

Group: Members
Posts: 2
Member No.: 2473
Joined: 20-March 07



Yes, I used tabs
PMEmail Poster
Top
Sob
Posted: Sep 12 2009, 11:22 PM
Quote Post


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
PMEmail Poster
Top
jobber_jobber
Posted: Sep 15 2009, 09:16 PM
Quote Post


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
PMEmail Poster
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | XMail Server | Next Newest »

Reply to this topicStart new topicStart Poll