CONFIGURE

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___________________________________________________________________________________________________
#   │ 127.0.0.1 ; ::1
# Maildir format in home directory 
# Machines to relay mail for:   127.0.0.1
# IP address or host name of the outgoing smarthost: TODO
## smtp.free.fr # TODO  
## smtp.gmail.com::587 # 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

SATELITE

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

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

$USER@gmail.com: smtp.gmail.com::587
$USER@free.fr: smtp.free.fr:587
$USER@wanadoo.fr: smtp.orange.fr
smtp.free.fr:587

EOF


cat <<EOF | sudo tee -a /etc/exim4/passwd.client
smtp.free.fr:$USER:$USER
*.google.com:$USER@gmail.com:$USER
EOF

sudo systemctl restart exim4

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

no local email

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

ERROR

fetchmail: SMTP< 550 Administrative prohibition
fetchmail: SMTP error: 550 Administrative prohibition
Trying to connect to 127.0.0.1/25...connected.

http://forums.gentoo.org/viewtopic-t-141054-start-0.html

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

P:

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

S:

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

Q:

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

A: ? full disk ?

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

http://osdir.com/ml/debian.devel.exim4.user/2005-09/msg00028.html

Q:

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 
dc_local_interfaces='127.0.0.1'

ERROR : mainlog Permission denied

Q:

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

A:

 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
dc_local_interfaces='127.0.0.1'
update-exim4.conf
systemctl restart exim4

@TaG: LoG SystemD

ERROR 550

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

EXIM

2007-12-29 12:57:49 Received from ???@tele2.fr U=rzr P=local S=1753 id=20071229115748.GA13849@???.gotdns.org
2007-12-29 13:01:01 smtp.tele2.fr [212.247.156.12] Connection timed out
2007-12-29 13:01:01 ???@chez.com 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

debian

Starting MTA:exim: incompatible command-line options or arguments 
"fetchmail: connection to localhost:smtp [127.0.0.1/25] 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

MORE

exim.txt · Last modified: 2022/04/16 12:22 (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