LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 10-23-2020, 07:58 AM   #1
kenw232
Member
 
Registered: May 2006
Posts: 125

Rep: Reputation: 12
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.

Thanks for any ideas.

Last edited by kenw232; 10-23-2020 at 08:23 AM.
 
Old 10-23-2020, 01:42 PM   #2
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,342

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by kenw232 View Post
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.
 
Old 10-23-2020, 01:59 PM   #3
kenw232
Member
 
Registered: May 2006
Posts: 125

Original Poster
Rep: Reputation: 12
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.
 
Old 10-24-2020, 02:02 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by kenw232 View Post
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.
You could use procmail to process bounces.
 
Old 10-24-2020, 03:13 AM   #5
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,725

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
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.

What problem are you trying to solve?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Questions about Sendmail, logging and identifying bounces adrianTNT Linux - Newbie 3 07-25-2011 05:19 PM
Question about Postfix, sendmail, and milters on RedHat EL 5 tomdkat Linux - Server 2 11-07-2008 10:06 AM
Getting rid of double bounces in sendmail sewer_monkey Linux - Enterprise 3 07-07-2004 11:34 AM
sendmail reports bounces but mail is successfully delivered sohmc Linux - Software 0 07-06-2004 06:40 AM
Need help installing Mandrake (again, again, again...) DicedMalt Mandriva 6 08-26-2003 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration