View previous topic :: View next topic |
Author |
Message |
The_Tree n00b
Joined: 25 May 2007 Posts: 5
|
Posted: Fri May 25, 2007 2:22 pm Post subject: Postfix (always bcc a copy of mail) |
|
|
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 |
|
|
magic919 Advocate
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Fri May 25, 2007 4:46 pm Post subject: |
|
|
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 |
|
|
The_Tree n00b
Joined: 25 May 2007 Posts: 5
|
Posted: Thu Jun 07, 2007 10:22 am Post subject: |
|
|
No Tried that postfix stops.
I think always_bcc works with clean up ? or one of the other postfix daemons. |
|
Back to top |
|
|
The_Tree n00b
Joined: 25 May 2007 Posts: 5
|
Posted: Thu Jun 07, 2007 12:42 pm Post subject: |
|
|
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 |
|
|
|