How to get sendmail bounces to go port 25 again (milters)
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.
How to get sendmail bounces to go port 25 again (milters)
I have a sendmail mail server running on CentOS 8. All great. I also have mimedefang installed. It will track sent messages to the database.
I now want to track the bounces via mimedefang too. But bounces are immediately and locally send to postmaster. they don't get processed through sendmail and the milters so I can't get mimedefang to see them to track them.
How do I fix this? What can I do to track bounces? Can I tell sendmail.mc to send all bounces back through itself again so mimedefang can see them? Connect a perl script to the postmaster email address? I prefer a mimedefang solution if possible.
I have a sendmail mail server running on CentOS 8. All great. I also have mimedefang installed. It will track sent messages to the database.
I now want to track the bounces via mimedefang too. But bounces are immediately and locally send to postmaster. they don't get processed through sendmail and the milters so I can't get mimedefang to see them to track them.
How do I fix this? What can I do to track bounces? Can I tell sendmail.mc to send all bounces back through itself again so mimedefang can see them? Connect a perl script to the postmaster email address? I prefer a mimedefang solution if possible.
Thanks for any ideas.
I don't really have a definite solution but the issue is the path. The returned bounces are incoming mail. The sent mail is outgoing mail and you are already processing it with mimedefang. Those are processed differently by sendmail since incoming mail is sent directly to local mailboxes (after any antivirus scanning if that is set up). You would need to look at how to process incoming mail with mimedefang if you wish the same type of record.
You could alias postmaster to a specific user set up for that purpose, then that users incoming mail would be whatever was sent to postmaster. I believe postmaster is normally aliased to root.
BTW, why rescan with mimedefang? The bounces would have been already scanned on the outgoing path.
Last edited by computersavvy; 10-23-2020 at 01:44 PM.
I want rescan because I want the bounce information, not necessarily the original sending message details. I need a way to track all bounces within a database. And the problem is bounces are sent directly to local mailboxes like you said. I need them to somehow be processed by mimedefang too. I want bounces to go to port 25 too, not just direct deposit/delivery.
I want rescan because I want the bounce information, not necessarily the original sending message details. I need a way to track all bounces within a database. And the problem is bounces are sent directly to local mailboxes like you said. I need them to somehow be processed by mimedefang too. I want bounces to go to port 25 too, not just direct deposit/delivery.
Bounces from other servers should go through your smtp server on port 25.
That would happen, for example, if the user in the remote server didn’t exist.
If the bounce is from your server...if the To: domain doesn’t exist..., it never left, so it won’t show up.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.