exim

From KlavoWiki
Jump to navigationJump to search

Configuration Wizard

dpkg-reconfigure exim4-config
systemctl restart exim4

Log files

View logfile.

tail -n 50 /var/log/exim4/mainlog
tail -n 50 /var/log/exim4/rejectlog

Message Management

Force Re-Delivery of Frozen Mmails.

exim -qff

Remove all Frozen Emails

exiqgrep -z -i | xargs exim -Mrm

View Message Details

exim -Mvh <message_id>   # View the headers
exim -Mvb <message_id>   # View the body
exim -Mvl <message_id>   # View the logs

(e)helo message

To send emails with a specific (E)HELO message

vi /etc/exim4/exim4.conf.template
REMOTE_SMTP_HELO_DATA = mail.mailadmin.au

Manual Config

vi /etc/exim4/update-exim4.conf.conf
dc_eximconfig_configtype='satellite'
dc_other_hostnames=''
dc_local_interfaces='10.1.1.1'
dc_readhost='mydomain.com'
dc_relay_domains='*'
dc_minimaldns='false'
dc_relay_nets='10.0.0.0/8, 172.16.0.0/12'
dc_smarthost='smtp.live.com'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'

Update and Restart

If editing config file update config and restart.

update-exim4.conf
systemctl restart exim4