Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Mar 24, 2012 10:38 am 
Offline
Senior Newbie

Joined: Sun Jan 29, 2012 2:34 pm
Posts: 15
I've followed the guides and successfully setup Postfix (in virtual user mode) and everything is working properly.

I would now like to setup a system to help monitor ALL incoming emails. Ideally I want to duplicate all messages to single email address (eg. log@domain.com) or out to a script. I want to log every single email (our volumes are not high) including those to mailboxes that don't exist. A catch-all address is no good because it only picks up an recipient not in the user table and I would still like to create the bounce to an email if the mailbox isn't there.

Is there not any way just to simply take a copy of every single email before passing onto the usual postfix queue for normal processing? It seems like something simple but I can't find any solutions on the net.


Top
   
 Post subject:
PostPosted: Sat Mar 24, 2012 10:49 am 
Offline
Senior Member

Joined: Fri Feb 17, 2012 8:20 pm
Posts: 365
Like this?


Top
   
 Post subject:
PostPosted: Sat Mar 24, 2012 11:08 am 
Offline
Senior Newbie

Joined: Sun Jan 29, 2012 2:34 pm
Posts: 15
Nuvini wrote:
Like this?


No. recipient_bcc_maps only works after the email has been accepted for a particular mailbox. So it doesn't capture emails sent to an email box that doesn't exist


Top
   
 Post subject:
PostPosted: Sat Mar 24, 2012 7:25 pm 
Offline
Senior Member

Joined: Sun Aug 31, 2008 4:29 pm
Posts: 177
Try always_bcc.

_________________
sleddog


Top
   
 Post subject:
PostPosted: Sat Mar 24, 2012 10:38 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Note that there simply is no message to copy when a recipient doesn't exist -- the rejection is done at the SMTP level. When you send an e-mail to an address that doesn't exist, the bounce e-mail itself is usually generated by your mail relay, not the recipient's server.

If you want to receive the message and then bounce it, you've got a bit of a problem: it's trivial to spoof e-mail addresses, so you'll be sending a bounce message to an e-mail address that is often some random third party. (This is called "backscatter", and is a considerable spam problem.)

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Wed Apr 04, 2012 2:03 pm 
Offline
Senior Newbie

Joined: Sun Jan 29, 2012 2:34 pm
Posts: 15
hoopycat wrote:
Note that there simply is no message to copy when a recipient doesn't exist -- the rejection is done at the SMTP level. When you send an e-mail to an address that doesn't exist, the bounce e-mail itself is usually generated by your mail relay, not the recipient's server.


Ah yes. Good point, I was envisaging a complete email being received and then rejected when postfix found the recipient didn't exist but you are right. If I think a bit harder I can see now that mail relay doesn't even get as far as sending the message to my server

Thanks


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group