Hello,is there a way to completely bypass amavisd when message comes from certain domains or IPs ?the "system" whitelist in iRedAdmin looks like it's working only to bypass greylist, and there is no per-domain whitelist.

The only way I've found is to use the whitelist in the per-user settings... but we have way too many users!

Even if it's not possible to do it from iRedAdmin-Pro, which files do I have to modify for this result? amavisd.conf ?

Checked the logs and the headers of the messages... it works perfectly! The messages are with no score, have the WHITELISTED tag, and get checked for virus. Exactly what I wanted.Delivery time lowered for the whitelisted addresses from 2500-3000ms to roughly 150ms.

If you want to make this method a quick "How-To" in your doc repository, feel free to use it.

Re: [SOLVED] How to bypass amavisd for some senders?

I tried this and got an bad file descriptor error on restarting amavisd (on my system, amavisd.conf is in /etc). The path to my whitelist file is correct. I have the file permissions set the same on both the whitelist file and amavisd.conf (user root and group amavis). Any ideas?

Re: [SOLVED] How to bypass amavisd for some senders?

answerman wrote:

I tried this and got an bad file descriptor error on restarting amavisd (on my system, amavisd.conf is in /etc). The path to my whitelist file is correct. I have the file permissions set the same on both the whitelist file and amavisd.conf (user root and group amavis). Any ideas?

amavisd.conf is located in /etc/, and my whitelist file is located in /etc/amavisd/. The path to the file is correct. amavisd starts correctly even with the error, but it's not seeing the whitelist file for some reason (there are only two email addresses in the whitelist file for test purposes).

Re: [SOLVED] How to bypass amavisd for some senders?

The only thing that comes to my mind is to verify if your whitelist file is correctly written.

Maybe you have some invisible characters or some incorrect charset (it depends by which editor you used to write your file)?Or maybe the last line of your text file is not terminated with a newline? This happens pretty often...

try to delete your whitelist file, rewrite it with an editor like vim or nano and restart amavisd.

Re: [SOLVED] How to bypass amavisd for some senders?

Albux wrote:

The only thing that comes to my mind is to verify if your whitelist file is correctly written.

Maybe you have some invisible characters or some incorrect charset (it depends by which editor you used to write your file)?Or maybe the last line of your text file is not terminated with a newline? This happens pretty often...

try to delete your whitelist file, rewrite it with an editor like vim or nano and restart amavisd.

Let me know

Well, I feel dumb. Added a newline at the end and that was all it took. Thanks for your help!

Re: [SOLVED] How to bypass amavisd for some senders?

Was just thinking... a client has asked me to block any email coming to him from a specific outside address. Could we do something like this in reverse: a list of blacklisted senders that would bounce?