Page 1 of 1

sender dependent relayhosts - not possible?

Posted: 09 May 2017 04:34
by onestone
Guys,

we need to accomplish to disable spam/virus filtering for a list of domains (FROM, not TO) and use a smarthost for those domains.

Therefore we found the postfix option "sender_dependent_relayhosts", therefore we added it to postfix main.cf:

Code: Select all

sender_dependent_relayhost_maps = hash:/etc/postfix/relayhost_maps
which works generally BUT still get the mail to be processed as all other mails within mailscanner. any idea how to disable this, it would be nice (but not mandatory) to see those mails in mailwatch but there must not be any rules (spamchecks, viruschecks, etc.) for those mails beeing processed.

best regards!

Re: sender dependent relayhosts - not possible?

Posted: 13 May 2017 14:13
by shawniverson
Could you use a header check to bypass the HOLD queue? That would effectively bypass all the internal parts of mailscanner and relay the mail.

Re: sender dependent relayhosts - not possible?

Posted: 15 May 2017 15:07
by onestone
Interesting. Where? Any hints?

Re: sender dependent relayhosts - not possible?

Posted: 16 May 2017 08:37
by shawniverson