RE: [SLE] Inbound email routing failed
Theo v. Werkhoven wrote:
On Thu, 17 Apr 2003, Patrick just had to get this off his chest:
**-- Overviewed --** I have a local TLD of .mpn served by a DNS server so all systems behind the firewall can be connected to with a .mpn extension. So mailserver.mpn would route out correctly. We have a exchange server that is port forwarded from the external interface which is resolved with neatech.com domain name.
We want to drop the exchange server and have most things in place to just dump it.
I'm testing incoming mail to mailserver.mpn with locally accessible:
telnet mailserver.mpn 25
prior to changing portforwading from the firewall. **----- End -----**
I'm having problems when I test on mailserver.mpn the routing of incoming email (say testuser@neatech.com) to the proper mailbox on mailserver.mpn. What happens is when an email comes in to mailserver.mpn for testuser@neatech.com it doesn't go to the testuser mailbox on mailserver.mpn, it gets routed back to the internet and ultimately through the port forward to the exchange server.
In this post you do not mention the MTA you're using (still Sendmail?) I'm an avid admirer of Postfix, so I'm going to explain this from a Postfix POV. All normal config in Postfix is done in /etc/postfix/main.cf. You need to tell your MTA that it can either relay- or receive for a domain. In Postfix this is the variable $mydestination, so:
mydestination = localhost.$mydomain, $myhostname, neatech.com
In the aliases file you can name the accounts that get the mail for this domain, e.g. testuser: patrick
don't forget newaliases.
Another way is to make use of virtual domain, so that you do not need real accounts on the mailserver. See man 8 virtual or the documentation on postfix.org for explanation.
I also want all outgoing mail to have @mailserver.mpn mangled to @neatech.com which I have not even tried yet, but I think the two things are related.
That's done with (sender_)canonical maps sender_canonical_maps = /etc/postfix/sender_canonical
/etc/postfix/sender_canonical: @mailserver.mpn neatech.com
postmap /etc/postfix/sender_canonical
YaST2 and webmin both have good interfaces to the Postfix config files as long as you're not comfortable changing these with vi.
The most important reasons to at least try Postfix are its -unbroken- security record (unlike you-know-what) and its plain and simple config files. Postfix is the default MTA since 8.1 afaik, on the DVD/CD are also versions with SSL/SASL and virusscanner support builtin.
Great forgot my MTA... using sendmail. I've thought about postfix and have a test box that I can use but now I just need the time. Maybe next week... I think that your explanation might help though, so I'm going to take a deeper look at some things in my setup.
participants (1)
-
Patrick Nelson