Whitelist domains in exim

Login to the server SSH as root. Make a sender whitelist file.

touch /etc/exim_whitelist_senders

Take a backup of the exim conf and open it.

cp -p /etc/exim.conf /etc/exim.conf.BKP
vi /etc/exim.conf

Add the line on top of the file

addresslist whitelist_senders = wildlsearch;/etc/exim_whitelist_senders

Now search for the line
require verify = sender/callout

Comment that line and add the following below that.

!verify = sender/callout=30s,defer_ok,maxwait=60s
!senders = +whitelist_senders

Save conf file.

Add email address to the /etc/exim_whitelist_senders file one by one. Wildcard is also acceptable here, Eg: *@domain.com

Restart exim

About these ads
About

anees

Posted in Issues, Mail
2 comments on “Whitelist domains in exim
  1. cocuk parki says:

    thanks for article

    Like

  2. Abramo says:

    Many thanks – useful & straightforward.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog Stats
  • 116,133 hits
Follow

Get every new post delivered to your Inbox.

Join 209 other followers

%d bloggers like this: