Solved

Linux as an email hub.

Posted on 1997-04-22
1
252 Views
Last Modified: 2010-03-18
Linux is bouncing incoming email between it and the email relay.  The email relay forwards the mail correctly but when it gets to the Linux box. Sendmail does know that it is suppose to keep the mail and give it to the appropriate user on the Linux box.  The email relay and Linux email hub are on seperate networks.  How do we get sendmail to keep the mail?

thanks

-brandon
0
Comment
Question by:blnewpor
1 Comment
 
LVL 1

Accepted Solution

by:
northwind earned 100 total points
ID: 1584429
Informations are not fully sufficient, but I will try anyway.

That you have the relay, seems to indicate that you know how the MX-records works - and yet it is here that the key to the problem lies.

Usually the situation is that you have an internal "unreachable" network like 192.168.x.0 (firewall scenario) and your MX points to the firewall. (Mine does that)

So the mail goes there.

At the firewall, the firewall discovers that the mail goes internally. This ccan be achieved in different ways.

So the mail goes there.

Now why would it bounce back? Well there iss actually only two reasons.
1) You have full nameservice here. So the SMTP MTA (Mail Transport Agent) sees your MX and says "hey it should actually go elsewhere".
The solution is of cause to keep the internal resolver unknowing of that.
Set up the nameservice on that machine so that it can not get access to the domain information (especially the MX) from outside.

2) The machine is not who he says he is. You told the firewall that olsen.com was on the internal net, but olsen.com has in reality another name. The mail goes there, but the MTA recognizes it as being for somebody else.
Solution: rename the machine or tell the MTA that it masquerades for this machine.

Most likely it is 1)
I maintain the yarc.com domain besides others. Mail to yarc.com is MX'ed to janus.yarcrip.com.
Janus.yarcrip.com has a broken nameservice. It knows that yarc.com is on the internal network - and where.
So it send the mail there.
Yarc.com on the internal net has a broken nameservice as well. I told it that it maintains primary nameservice for yarc.com (which it don't) and that it itself is yarc.com. Thats how I get rid of the MX on the internal network.
The nameserver here knows that all other namelookups must be forwarded to the outside nameserver, making this machine perfectly capable of handling all in and outgoing mail.

Hope that gets you going
Karsten Jeppesen <kj@yarc.com, northwind@earthlink.net>
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
WS-FTP unable to connect to server after software update 6 305
Squid Connection Pools 3 46
IPA - can it be run on a web server? 3 144
Issue to mail 11 72
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now