sudo apt-get install exim4-config exim4 mutt
sudo dpkg-reconfigure exim4-config
# mail sent by smarthost; received via SMTP or fetchmail
# www.${domain}.org___________________________________________________________________________________________________
#   │ ; ::1
# Maildir format in home directory 
# Machines to relay mail for:
# IP address or host name of the outgoing smarthost: TODO
## # TODO  
## # TODO select one
# Split configuration into small files? : YES
sudo less /var/log/exim4/mainlog
cat /etc/email-addresses
$user: $email
root: $email

ls /etc/exim4/
conf.d  exim4.conf.template  passwd.client  sa-exim.conf  smarthostlist  update-exim4.conf.conf


cat /etc/email-addresses
$USER: $
echo "$USER: $EMAIL" | sudo tee -a /etc/email-addresses

cat<<EOF | sudo tee -a /etc/exim4/smarthostlist



cat <<EOF | sudo tee -a /etc/exim4/passwd.client$USER:$USER

sudo systemctl restart exim4

echo "$USER $EMAIL" | mail $EMAIL
sudo mailq

no local email

su -c "sendmail -bv root@localhost"
root@localhost verified
date | mail "root@localhost"
#| No mail for root
#| /var/mail/root: No such file or directory \
#| (errno = 2)                                                                                               


fetchmail: SMTP< 550 Administrative prohibition
fetchmail: SMTP error: 550 Administrative prohibition
Trying to connect to

421 Unexpected failure, please try later 
Stopping MTA for restart:open: No space left on device


R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host


exim -bp | exiqgrep -i | xargs exim -Mrm


re-exec of exim (/usr/sbin/exim4) with -q failed: Bad address 

A: ? full disk ?

sudo service exim4 stop
truncate -s 0 /var/log/exim4/paniclog
/etc/init.d/exim4 restart


2015-04-11 11:29:57 socket bind() to port 25 for address ::1 failed: Cannot assign requested address: daemon abandoned

S: Disable IPv6

tail /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
grep 127  /etc/exim4/update-exim4.conf.conf 

ERROR : mainlog Permission denied


Cannot open main log file "/var/log/exim4/mainlog": Permission denied: euid=123 egid=133


 sudo sync
 ls -l /usr/sbin/exim4 
 sudo dpkg -S /usr/sbin/exim4
 sudo aptitude reinstall exim4-daemon-light
 grep Debian-exim /etc/passwd
 ls -l /usr/sbin/exim4 
 ls -l /var/log/exim4 || sudo mkdir -p /var/log/exim4 
 sudo touch /var/log/exim4/mainlog
 sudo chown Debian-exim:adm /var/log/exim4
 sudo chown -R Debian-exim:adm /var/log/exim4 /var/spool/exim4
 sudo /etc/init.d/exim4 restart
 date | mail $USER && mail

@TaG: SmtP EMaiL ContacT ChMod

ERROR : mainlog : has non-zero size

exim4[*]: ALERT: exim paniclog /var/log/exim4/paniclog has non-zero size, mail system possibly broken

ERROR: Cannot assign requested address

sudo lsof  | grep :smtp
exim4     28828                   root    3u     IPv4             214819        0t0        TCP localhost:smtp (LISTEN)
socket bind() to port 25 for address ::1 failed: Cannot assign requested address: waiting 30s before trying again  
grep dc_local_interface  /etc/exim4/update-exim4.conf.conf
systemctl restart exim4

@TaG: LoG SystemD


The mail system <$user@$host>: host $host[$ip] said:
550 relay not permitted (in reply to RCPT TO command)

error frozen

How to send and flush queue :

sudo mailq | grep '*** frozen ***' | wc -l && sudo exim4 -qqff -d-all -v && sudo mailq

View body of queue messages:

sudo exiqgrep -iz | while read t ; do exim -Mvb $t ; done | less

Erase all frozen queued messages:

sudo exiqgrep -iz | xargs -P25 sudo exim -Mrm


2007-12-29 12:57:49 Received from ??? U=rzr P=local S=1753 id=20071229115748.GA13849@???
2007-12-29 13:01:01 [] Connection timed out
2007-12-29 13:01:01 ??? R=smarthost T=remote_smtp_smarthost defer (110): Connection timed out

How to freeze :

type mailq to see the list of messages
then exim4 -Mf <message id> <message id>...<message id>
where you take the message ids from the result of mailq
when gna is back on line, you will type exim4 -qqff to force a delivery attempt of the frozen messages


Starting MTA:exim: incompatible command-line options or arguments 
"fetchmail: connection to localhost:smtp [] failed: Connection refused. " 

fetchmail: SMTP error: 550 Administrative prohibition

administrative prohibition :

Client host rejected: Access denied
2016-02-09 16:40:50 *-* ** *@* R=smarthost T=remote_smtp_smarthost: SMTP error from remote mail server after RCPT TO:<*@*>: host * [*]: 554 5.7.1 <unknown[*]>: Client host rejected: Access denied


exim.txt · Last modified: 2020/09/08 20:42 (external edit)
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki