Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix (always bcc a copy of mail)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
The_Tree
n00b
n00b


Joined: 25 May 2007
Posts: 5

PostPosted: Fri May 25, 2007 2:22 pm    Post subject: Postfix (always bcc a copy of mail) Reply with quote

Hi all

I have a mail filter setup to filter my messages before passing the email to our corporate mail system ( horrible tobit)

anyways

I have setup the system to filter mail ok using the gentoo postfix mail filter how too and updates where necessary

I also want to keep a copy of every mail successfully passing thought the box.
by adding the following command to main.cf

always_bcc = archiving@emaill.address

but it's taking copies of mail before filtering with the first instance of postfix smtpd which is just forwarding to amavisd-new
I only want to take copies of the emails when the returned back from amavisd-new on the second instance of smtpd running.

any ideas.

thanks in advance

Damien
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Fri May 25, 2007 4:46 pm    Post subject: Reply with quote

Sounds like you want to stick your always_bcc under the instance of smtpd that listens for amavisd, on 10025 or whatever, in master.cf.
Back to top
View user's profile Send private message
The_Tree
n00b
n00b


Joined: 25 May 2007
Posts: 5

PostPosted: Thu Jun 07, 2007 10:22 am    Post subject: Reply with quote

No Tried that postfix stops.

I think always_bcc works with clean up ? or one of the other postfix daemons.
Back to top
View user's profile Send private message
The_Tree
n00b
n00b


Joined: 25 May 2007
Posts: 5

PostPosted: Thu Jun 07, 2007 12:42 pm    Post subject: Reply with quote

found it. it was to do with the clean up deamon.

in master.cf I made the following changes

added to this to my instance of smtpd that was accepting mail back from amavis-new

-o cleanup_service_name=cleanup2

then added the following


cleanup2 unix n - n - 0 cleanup
-o always_bcc=maill.address


then restarted postfix.

now cleanup2 adds the bcc not the first instance and then again on the return of the email from amavis.
hence removing the duplicate copies.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum