sender dependent relayhosts - not possible?

General eFa discussion
Post Reply
onestone
Posts: 9
Joined: 24 Oct 2016 20:35

sender dependent relayhosts - not possible?

Post 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!
User avatar
shawniverson
Posts: 3783
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: sender dependent relayhosts - not possible?

Post 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.
onestone
Posts: 9
Joined: 24 Oct 2016 20:35

Re: sender dependent relayhosts - not possible?

Post by onestone »

Interesting. Where? Any hints?
Post Reply