Re: Dynamic 'myhostname'

2015-09-11 Thread Christian Kivalo
Am 10. September 2015 23:13:59 MESZ, schrieb Mick : >On 10/09/2015 21:13, Wietse Venema wrote: >> Mick: >>> Hi, >>> >>> I'm trialling DMARC to two of my domains. On checking the results >when >>> posting from the secondary domain I receive 'SPF Domain Alignment >Result >>>

Re: add a recipient in a policy daemon

2015-09-11 Thread Wietse Venema
Ram: > On 09/11/2015 08:01 PM, Wietse Venema wrote: > > Ram: > >> How can I add a bcc recipient using a policy daemon > >> > >> I have written a custom policy daemon , and the logic requires that for > >> some conditions the mail needs to be bcc'ed to a program > >> > >> Can this be done ? > >

Problem filtering broken PGP mail with body_checks

2015-09-11 Thread Sebastian Nielsen
Im trying to filter broken PGP mail into usable mail with body checks. I have selected to use pcre: when defining body_checks. The problem is that certain PGP useragents, inserts a \r charachter, a tab, space, or any other whitespace char immediately before or after the “-BEGIN PGP

RE: Check NS (name or IP) against RBL

2015-09-11 Thread Marius Gologan
Thank you Wietse and Viktor. I know check_{sender,helo,client}_{ns,mx}_access files and played a bit with them, but I already run a granular RBL service. Unfortunately I'm not winning the game with some type of spam sent repeatedly during night time using: IPs from class B, multiple domains,

Re: spf/dkim authentication-failure

2015-09-11 Thread Benny Pedersen
On September 12, 2015 12:03:21 AM Alice Wonder wrote: I don't think there is anything I can do about that in my dmarc configuration, but I just want to make sure. dmarc pass is fine for me, if it fails on other maillists its not your fault

Re: Problem filtering broken PGP mail with body_checks

2015-09-11 Thread Stuart Longland
On 12/09/15 06:29, Sebastian Nielsen wrote: > So the rule is as follows: > /[ \t\r\f]*-(BEGIN|END)([^-]*)-[ \t\r\f]*/ REPLACE -$1$2- > > The problem with this, is that this removed the whole body of the mail > except for the -BEGIN PGP MESSAGE- line. > > What are im

spf/dkim authentication-failure

2015-09-11 Thread Alice Wonder
I have started to get a lot of those when I send messages to some lists. I understand what is happening, dmarc identifies my domain as DKIM/SPIF enabled but when sending a message to a list, both of those will fail. I don't think there is anything I can do about that in my dmarc

Re: Problem filtering broken PGP mail with body_checks

2015-09-11 Thread Stuart Longland
On 12/09/15 08:24, Stuart Longland wrote: > This is just a wild guess on my part, but could that possibly be matching: > >> > -BEGIN BLAH- >^^^ >> > yadda yadda yadda > ^ >> > -END BLAH- > ^ > > and giving you: $1="BEGIN", $2="

Re: Problem filtering broken PGP mail with body_checks

2015-09-11 Thread Sebastian Nielsen
Yep. On top of that: ([^-]*) means any charachter except for -, so it shouldn't match any -, and thus $2 cannot contain the charachter "-" at all. I suspect that postfix in some way matches the whole message in once, and when the REPLACE word is given, the whole message, even including parts

Re: Problem filtering broken PGP mail with body_checks

2015-09-11 Thread Stuart Longland
On 12/09/15 08:31, Sebastian Nielsen wrote: > Yep. On top of that: ([^-]*) means any charachter except for -, so it > shouldn't match any -, and thus $2 cannot contain the charachter "-" at > all. > > I suspect that postfix in some way matches the whole message in once, > and when the REPLACE

Re: Dynamic 'myhostname'

2015-09-11 Thread Mick
Hi Christian, Hi Wietse, I only have 1 IP address (2 if you count the IPv6 address). A reverse DNS lookup will always find my primary domain so even if I used 'sender_dependent_default_transport' and set up multiple switches just to change HELO name, they still have to point to the same IP.

add a recipient in a policy daemon

2015-09-11 Thread Ram
How can I add a bcc recipient using a policy daemon I have written a custom policy daemon , and the logic requires that for some conditions the mail needs to be bcc'ed to a program Can this be done ? Thanks Ram

Re: ASPL: discarding a single recipient or a set of them from a multi-recipient message

2015-09-11 Thread Francis Brosnan Blázquez
Hi Viktor, > > Yes, but this doesn't work if you need to adjust outgoing IP based on > > the sasl user (published solutions insist on using FILTER :-( [1]) > > Then perhaps we should provide a way of doing the same thing by > SASL login. Both the envelope address and the SASL login name are >

RE: Check NS (name or IP) against RBL

2015-09-11 Thread Marius Gologan
Thank you. I will go with central RBL service and a policy service script. Sent from phone -Original Message- From: "Wietse Venema" Sent: ‎9/‎11/‎2015 2:15 AM To: "postfix-users@postfix.org" Subject: Re: Check NS (name or IP) against

Re: Check NS (name or IP) against RBL

2015-09-11 Thread Wietse Venema
Marius Gologan: > Thank you. I will go with central RBL service and a policy service script. > FYI, check_sender_ns_access does not require a policy server. Wietse > > -Original Message- > From: "Wietse Venema" > Sent: ?9/?11/?2015 2:15 AM > To:

Re: ASPL: discarding a single recipient or a set of them from a multi-recipient message

2015-09-11 Thread Wietse Venema
You could use virtual_alias_maps to rewrite the envelope recipient to a bit-bucket address (virtual aliases take effect unless you specify alias expansion with receive_override_options). Either way, the sender-dependent delivery agent would need to be able to deliver the bit-bucket address to a

Re: add a recipient in a policy daemon

2015-09-11 Thread Wietse Venema
Ram: > How can I add a bcc recipient using a policy daemon > > I have written a custom policy daemon , and the logic requires that for > some conditions the mail needs to be bcc'ed to a program > > Can this be done ? Postfix 3.0 and later: BCC user@domain Send one copy

Re: add a recipient in a policy daemon

2015-09-11 Thread Ram
On 09/11/2015 08:01 PM, Wietse Venema wrote: Ram: How can I add a bcc recipient using a policy daemon I have written a custom policy daemon , and the logic requires that for some conditions the mail needs to be bcc'ed to a program Can this be done ? Postfix 3.0 and later: BCC