| Line 340: |
Line 340: |
| | | | |
| | = Troubleshooting = | | = Troubleshooting = |
| | + | === Exim === |
| | exim4 -bP | grep tls_ | | exim4 -bP | grep tls_ |
| | test with: | | test with: |
| Line 345: |
Line 346: |
| | swaks -a -tls -q HELO -s gollum.redactate.com -au test -ap '<>' | | swaks -a -tls -q HELO -s gollum.redactate.com -au test -ap '<>' |
| | | | |
| − | #Choose internet site
| + | ==== Receiving emails ==== |
| − | #Choose domain
| + | Pick an email address that you added to the “email_accounts” database, and try sending email to it while logged-in to server command-line: |
| | + | exim -d -bt testname@yourdomain.com |
| | + | …this will give a COMPLETE list of what exim is doing, and it will tell you every decision it made along the way. It should eventually decide the address is “routeable” and OK it. |
| | + | |
| | + | If that looks OK, try sending an email from your normal email account (e.g. your Hotmail / Gmail / Yahoo.com address). Wait a minute, then check the server to see if it crashed trying to receive the email, by checking the logfiles. |
| | + | |
| | + | Check exim’s logfiles |
| | + | |
| | + | Exim will put its logfiles in /var/log/exim4. Check for errors using: |
| | + | tail /var/log/exim4/mainlog |
| | + | |
| | + | (if there’s a lot of errors, you’ll have to cat the whole thing) |
| | + | |
| | + | If it rejected the email, it will send a bounce-back to your email provider (yahoo/gmail/etc), and it will ALSO put some info into: |
| | + | tail /var/log/exim4/rejectlog |
| | + | |
| | + | ==== Sending emails ==== |
| | + | sending emails |
| | + | |
| | + | …I waited until I had webmail (Roundcube) working before trying this… |
| | + | Any other Exim problems? |
| | + | |
| | + | If exim is working, but its blocking/rejecting/losing emails, it will “freeze” them after the first failure. You need to “unfreeze” (i.e. retry) each email to see if you’ve fixed the problem. |
| | + | |
| | + | How? |
| | + | |
| | + | Here is a list of commands to help: http://bradthemad.org/tech/notes/exim_cheatsheet.php |
| | + | |
| | + | === Test Dovecot === |
| | + | https://wiki2.dovecot.org/TestInstallation |
| | + | |
| | | | |
| | [https://www.dropbox.com/s/8w55kys0yirfmv9/Exim4.69%20configuration%20%2B%20exploitation%20review-j1osx__Q0PE.mp4?dl=0|exim4 configuration (mp4)] | | [https://www.dropbox.com/s/8w55kys0yirfmv9/Exim4.69%20configuration%20%2B%20exploitation%20review-j1osx__Q0PE.mp4?dl=0|exim4 configuration (mp4)] |
| | + | |
| | = Resources = | | = Resources = |
| | http://t-machine.org/index.php/2014/06/27/webmail-on-your-debian-server-exim4-dovecot-roundcube/ | | http://t-machine.org/index.php/2014/06/27/webmail-on-your-debian-server-exim4-dovecot-roundcube/ |