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 -> Domain forwarding...?

Closed TopicStart new topicStart Poll

> Domain forwarding...?, About custom domain handling ..
alternativeIT
Posted: Dec 11 2003, 02:55 AM
Quote Post


Newbie
*

Group: Members
Posts: 4
Member No.: 844
Joined: 11-December 03



Hi guys,

I'm trying to work out how to configure XMail to accept all mail for a domain, then attempt to forward that mail on to a specfic mail server. Basically, I just want to provide a backup mail server for one of my clients - if their mail server is down, the mail will come to my server, and I need it to attempt to forward it on to their mail server.

What I *don't* want is for XMail to do a DNS lookup for the MX records for the domain, and try and deliver the mail that way, as if it cannot connect to the primary mail server, it'll attempt to deliver the mail to itself again.... = messy smile.gif

So to recap:

client.com's MX records:

mx1.client.com (clients' primary mail server)
mx1.mydomain.com (my XMail server)

If a MTA out on the net can't connect to mx1.client.com, the mail will be sent to mx1.mydomain.com. XMail running on mx1.mydomain.com needs to accept *any* mail addressed to *@client.com, and attempt to forward the mail on to mx1.client.com.

Any ideas guys? smile.gif I'm asking for help as I don't want to accidentally turn my mail server into an open relay.

Cheers,
John smile.gif
PMEmail Poster
Top
atomant
Posted: Dec 11 2003, 07:36 AM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 1776
Member No.: 427
Joined: 18-January 03



Use custom domain processing.
Under custdomains directory create a mx1.client.com.tab file with following lines in it:
"smtprelay"[TAB]"server"[NEWLINE]

Note: TAB is real tab character and NEWLINE is real return.

To prevent your server being an open relay uncomment in server.tab line:
"EnableAuthSMTP-POP3" "0"

Clear smtprelay.tab file, in smtp.ipmap.tab you need to have:
"0.0.0.0/0"[tab]"0.0.0.0/0"[tab]"ALLOW"[tab]"1"[newline]


--------------------
Bye,
Sasa



-------------------------------------------------------------------

All electric machines work on smoke...when the smoke escape from machines, they don't work anymore
Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming or what?"
PMEmail PosterUsers WebsiteICQ
Top
alternativeIT
Posted: Dec 11 2003, 08:31 AM
Quote Post


Newbie
*

Group: Members
Posts: 4
Member No.: 844
Joined: 11-December 03



Thanks Sasa, exactly what I was looking for. Thanks for the help smile.gif
PMEmail Poster
Top
atomant
Posted: Dec 11 2003, 09:19 AM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 1776
Member No.: 427
Joined: 18-January 03



You're welcome. biggrin.gif


--------------------
Bye,
Sasa



-------------------------------------------------------------------

All electric machines work on smoke...when the smoke escape from machines, they don't work anymore
Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming or what?"
PMEmail PosterUsers WebsiteICQ
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Documentation and Knowledge Base | Next Newest »

Closed TopicStart new topicStart Poll