Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've got a very annoying problem. I'm at the end of my rope. If someone could help, I'd really appreciate it.
For a couple of years had a RedHat server running sendmail on my DMZ that forwards mail to my Exchange 5.5 server. I needed to upgrade so, I built a new Mandrake 9.2 box. The goal of this server is to be a spam filter and to then forward all mail to our existing Exchange 5.5 server. The problem I am having is that the linux box isn't forwarding any of the mail. I haven't seen any non-delivery reports on any of the mail I have sent to test it, and my firewall logs show that the mail made it to the linux server, but it never makes it to the Exchange server.
I'm wondering if there is some way to check logs, or queues inside of postfix to see if the mail has been blocked or rejected or if it's some kind of misconfiguration.
I also have a second question, there is an email "tester" at http://www.dnsreport.com that I've been using to test. I put in postmaster@mydomain.com and it give me the following error: "Could not connect: Could not receive data: Operation timed out." With my former server in place, it gives me a 200 OK.
Any ideas? Let me know if you need more information.
You have to make sure that your postfix gateway doesn't consider itself the final destination of your mail-domain(s).
This is achived by setting mydestination i main.cf to the local host only:
mydestination = $myhostname, localhost.$mydomain
Then You have to verify your transport maps, so postfix knows what to do with the mail destined for the exchange server. My transport file is in /etc/postfix/, and sample line in transport could be:
Remember to run "postmap /etc/postfix/transport" after you've edited the transport file. Also make sure to have transport_maps = hash:/etc/postfix/transport in your main.cf.
Ok, THANKS SO MUCH. I've gotten just a little bit closer now.
This never happened before, but now, I'm getting Error emails sent to my mailbox (on the exchange server) which means the linux box is now sending to the Exchange server correctly.
Could you please disclose your main.cf and master.cf. You can leave out ip-addresses and other security compromising stuff.
Also make sure that name-resolution is configured correctly on the postfix box. Postfix should be able to do forward lookups when sending mail, and reverse lookups when recieving.
Does postfix report anything from the postfix check?
Looks OK to me, but I can see that you're working on som filtering with postfix as well.
In general when working with postfix, i'd suggest that you make the things work one at a time, otherwise you'll be toying with your sanity
Comments to your main.cf:
Quote:
mynetworks = 10.0.0.0/16, 192.0.0.0/16
Add 127.0.0.0/8 here to allow relaying from lo-net
Quote:
relayhost = firewall.ervincable.com
relayhost is the "last resort" destination for mail domains not in the transport map. In a gateway environment you should rely on your transports only. So comment this line unless it's really needed.
Quote:
alias_database = hash:/etc/postfix/aliases
Not sure you need this one, if you can settle with postalias
Quote:
smtpd_banner = mail.ervincable.com
I'm kind of sure that according to the rfc it should read:
smtpd_banner = $myhostname ESMTP some_text
Quote:
mailbox_command = /usr/bin/procmail -Y -a $DOMAIN
Again. Not really sure this is a good idea on a gateway
I'm sure you are right about getting postfix working before trying the spamblocking software. I'm introducing too many problems at one time. I've made so many changes, I think I'm going to start with a clean installation and go from there.
I've been reading the Postfix documentation and I have a much better grasp on it now, than when I started. I think if I leave the spamfiltering off, and just do a basic forwarding setup, I can get it working and then move on from there.
Thanks for all your help. I really appreciate you taking the time to help me out.
I read the Postfix documentation last night from home and went through each line of my config with the document beside me and wrote a new main.cf.
I used my new main.cf this morning and it worked perfectly!
I have Spamassassin running on it now, and I'm not seeing much spam, but SOME valid emails aren't making it in either. I'm going to take a look at that spamassassin link you sent me, and see how it goes.
Thanks for all the help. I guess when all else fails, RTM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.