===== 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 * http://newbiedoc.sourceforge.net/networking/exim.html#ABITMOREADVANCED * https://wiki.debian.org/GmailAndExim4 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< * https://wiki.debian.org/GmailAndExim4 ===== 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 * https://www.mail-archive.com/debian-user@lists.debian.org/msg666888.html 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 * http://serverfault.com/questions/242532/debian-squeeze-and-exim4-cannot-send-mail * http://comments.gmane.org/gmane.comp.misc.nslu2.general/9104 * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=549198 @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) * https://lists.exim.org/lurker/message/20080312.013045.cb7c7df4.en.html ==== 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 ===== * http://www.audeladelherbeseche.fr/bloginfo/notes/5/comment-vivre-avec-exim4-linux-et-tele2 * https://bugs.launchpad.net/ubuntu/+source/exim4/+bug/179193 * https://bugs.launchpad.net/ubuntu/+source/emacs21/+bug/57803 * http://exim.org 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 ... 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 * http://bugs.debian.org/477194 "fetchmail: connection to localhost:smtp [127.0.0.1/25] failed: Connection refused. " * http://forums.debian.net/viewtopic.php?p=93126 fetchmail: SMTP error: 550 Administrative prohibition * https://lists.berlios.de/pipermail/fetchmail-users/2006-November/000740.html administrative prohibition : * http://kb.mozillazine.org/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 : Client host rejected: Access denied ===== MORE ===== @TaG: [[smtp]] [[postfix]] [[fetchmail]] [[fetch]] [[mail]] ImaP EMaiL ServeR ContacT {{geximon.png}} {{http://img3.wikia.nocookie.net/__cb20140105143537/creepypasta/images/2/29/Creative_Wallpaper_Sad_clown_035190_.jpg}}