This shows you the differences between two versions of the page.
— | mail [2021/12/08 05:48] (current) – created vissie | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | =====Setup sending mail from Debian===== | ||
+ | |||
+ | Generally, the Debian Exim 4 packages are configured through debconf. The install prompts for questions during package installation, | ||
+ | sudo apt-get install exim4 | ||
+ | sudo dpkg-reconfigure exim4-config | ||
+ | |||
+ | For me to use my internet email server I used these settings: | ||
+ | |||
+ | Choose " | ||
+ | Set to " | ||
+ | Set to " | ||
+ | Leave as empty for "Other destinations for which mail is accepted:" | ||
+ | Leave as empty for " | ||
+ | |||
+ | The authentication information for the external SMTP service is stored in / | ||
+ | |||
+ | vim / | ||
+ | |||
+ | *.google.com: | ||
+ | or | ||
+ | mail.yourdreamhostdomain.com: | ||
+ | |||
+ | For aliases edit / | ||
+ | root: mail.domain.com | ||
+ | |||
+ | To test | ||
+ | echo "this is a test" | mail -s "from comandline" | ||
+ | or | ||
+ | echo "This is my body" | mailx -a "From: Foo Bar < | ||
+ | |||
+ | ===== postfix ===== | ||
+ | https:// | ||
+ | |||
+ | =====Things to check if you have issues===== | ||
+ | ==== Log ==== | ||
+ | Do look at what is happening in the log. Trust me, you want to know. | ||
+ | tail -f / | ||
+ | If you having issues, lets say that your emails is not going out. It could be that messages is stuck. It could also happen (like with me) that Exim has locked your IP thus no messages will go out. Clean the que! | ||
+ | Remove all messages from the db | ||
+ | rm / | ||
+ | |||
+ | |||
+ | If you get " | ||
+ | sudo dpkg-reconfigure exim4-config | ||
+ | |||
+ | =====Unfreeze messages in Exim queue===== | ||
+ | To process all **frozen** messages in the Exim queue use this command: | ||
+ | mailq | grep frozen | awk ' | ||