| Linode Forum https://forum.linode.com/ |
|
| Email with Postfix, Dovecot, and MySQL https://forum.linode.com/viewtopic.php?f=11&t=11348 |
Page 1 of 1 |
| Author: | jadeye [ Tue Oct 07, 2014 11:32 am ] |
| Post subject: | Email with Postfix, Dovecot, and MySQL |
Hello all I am new here but now as much new to linux servers I am trying (for the past 3 days) to setup a mail server. I dont even know where to start so you guyz are my last resort... This is the tutorial I was following: https://www.linode.com/docs/email/postfix/email-with-postfix-dovecot-and-mysql I followed it twice!! My SSL is self-signed! At first it was rejecting mail. Now it recognizes the mail and users but I can not connect to the server with a mail client (TB). Trying to troubleshoot this i went through: https://www.linode.com/docs/email/postfix/troubleshooting-problems-with-postfix-dovecot-and-mysql/ I have tried and tried endlessly.....I am kinda tired of this but it has to be resolved. Hopefully with communal help! 1. Telneting ports 993/995 fails - connection refused (Checking Port Availability on Troubleshooting guide) 2. My iptables *filter # Allow all loopback (lo0) traffic and drop all traffic to 127/8 that doesn't use lo0 -A INPUT -i lo -j ACCEPT -A INPUT -d 127.0.0.0/8 -j REJECT # Accept all established inbound connections -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT # Allow all outbound traffic - you can modify this to only allow certain traffic -A OUTPUT -j ACCEPT # Allow HTTP and HTTPS connections from anywhere (the normal ports for websites and SSL). -A INPUT -p tcp --dport 80 -j ACCEPT -A INPUT -p tcp --dport 443 -j ACCEPT # Allows imap and imaps connections -A INPUT -p tcp --dport 143 -j ACCEPT -A INPUT -p tcp --dport 993 -j ACCEPT # Allows SMTP access -A INPUT -p tcp --dport 25 -j ACCEPT # Allows pop and pops connections -A INPUT -p tcp --dport 110 -j ACCEPT -A INPUT -p tcp --dport 995 -j ACCEPT # Allow SSH connections # # The -dport number should be the same port number you set in sshd_config # -A INPUT -p tcp -m state --state NEW --dport XX -j ACCEPT # Allow ping -A INPUT -p icmp -j ACCEPT # Log iptables denied calls -A INPUT -m limit --limit 5/min -j LOG --log-prefix "iptables denied: " --log-level 7 # Drop all other inbound - default deny unless explicitly allowed policy -A INPUT -j DROP -A FORWARD -j DROP COMMIT 3. tail -50 mail.log Oct 7 17:59:14 tuvia postfix/smtpd[17982]: match_list_match: 2607:f8b0:4002:c01::231: no match Oct 7 17:59:14 tuvia postfix/smtpd[17982]: auto_clnt_open: connected to private/anvil Oct 7 17:59:14 tuvia postfix/smtpd[17982]: send attr request = connect Oct 7 17:59:14 tuvia postfix/smtpd[17982]: send attr ident = smtp:2607:f8b0:4002:c01::231 Oct 7 17:59:14 tuvia postfix/smtpd[17982]: private/anvil: wanted attribute: status Oct 7 17:59:14 tuvia postfix/smtpd[17982]: input attribute name: status Oct 7 17:59:14 tuvia postfix/smtpd[17982]: input attribute value: 0 Oct 7 17:59:14 tuvia postfix/smtpd[17982]: private/anvil: wanted attribute: count Oct 7 17:59:14 tuvia postfix/smtpd[17982]: input attribute name: count Oct 7 17:59:14 tuvia postfix/smtpd[17982]: input attribute value: 1 Oct 7 17:59:14 tuvia postfix/smtpd[17982]: private/anvil: wanted attribute: rate Oct 7 17:59:14 tuvia postfix/smtpd[17982]: input attribute name: rate Oct 7 17:59:14 tuvia postfix/smtpd[17982]: input attribute value: 1 Oct 7 17:59:14 tuvia postfix/smtpd[17982]: private/anvil: wanted attribute: (list terminator) Oct 7 17:59:14 tuvia postfix/smtpd[17982]: input attribute name: (end) Oct 7 17:59:14 tuvia postfix/smtpd[17982]: > mail-yh0-x231.google.com[2607:f8b0:4002:c01::231]: 220 tuvia ESMTP Postfix (Ubuntu) Oct 7 17:59:14 tuvia postfix/smtpd[17982]: < mail-yh0-x231.google.com[2607:f8b0:4002:c01::231]: EHLO mail-yh0-x231.google.com Oct 7 17:59:14 tuvia postfix/smtpd[17982]: match_list_match: mail-yh0-x231.google.com: no match Oct 7 17:59:14 tuvia postfix/smtpd[17982]: match_list_match: 2607:f8b0:4002:c01::231: no match Oct 7 17:59:14 tuvia postfix/smtpd[17982]: > mail-yh0-x231.google.com[2607:f8b0:4002:c01::231]: 250-tuvia Oct 7 17:59:14 tuvia postfix/smtpd[17982]: > mail-yh0-x231.google.com[2607:f8b0:4002:c01::231]: 250-PIPELINING Oct 7 17:59:14 tuvia postfix/smtpd[17982]: > mail-yh0-x231.google.com[2607:f8b0:4002:c01::231]: 250-SIZE 10240000 Oct 7 17:59:14 tuvia postfix/smtpd[17982]: > mail-yh0-x231.google.com[2607:f8b0:4002:c01::231]: 250-VRFY Oct 7 17:59:14 tuvia postfix/smtpd[17982]: > mail-yh0-x231.google.com[2607:f8b0:4002:c01::231]: 250-ETRN Oct 7 17:59:14 tuvia postfix/smtpd[17982]: > mail-yh0-x231.google.com[2607:f8b0:4002:c01::231]: 250-STARTTLS Oct 7 17:59:14 tuvia postfix/smtpd[17982]: > mail-yh0-x231.google.com[2607:f8b0:4002:c01::231]: 250-ENHANCEDSTATUSCODES Oct 7 17:59:14 tuvia postfix/smtpd[17982]: > mail-yh0-x231.google.com[2607:f8b0:4002:c01::231]: 250-8BITMIME Oct 7 17:59:14 tuvia postfix/smtpd[17982]: > mail-yh0-x231.google.com[2607:f8b0:4002:c01::231]: 250 DSN Oct 7 17:59:14 tuvia postfix/smtpd[17982]: < mail-yh0-x231.google.com[2607:f8b0:4002:c01::231]: STARTTLS Oct 7 17:59:14 tuvia postfix/smtpd[17982]: > mail-yh0-x231.google.com[2607:f8b0:4002:c01::231]: 220 2.0.0 Ready to start TLS Oct 7 17:59:14 tuvia postfix/smtpd[17982]: send attr request = seed Oct 7 17:59:14 tuvia postfix/smtpd[17982]: send attr size = 32 Oct 7 17:59:14 tuvia postfix/smtpd[17982]: private/tlsmgr: wanted attribute: status Oct 7 17:59:14 tuvia postfix/smtpd[17982]: input attribute name: status Oct 7 17:59:14 tuvia postfix/smtpd[17982]: input attribute value: 0 Oct 7 17:59:14 tuvia postfix/smtpd[17982]: private/tlsmgr: wanted attribute: seed Oct 7 17:59:14 tuvia postfix/smtpd[17982]: input attribute name: seed Oct 7 17:59:14 tuvia postfix/smtpd[17982]: input attribute value: QqL2gZc2wNj0tEfYVayPHSOYEli54ReQSYq28nQqm7E= Oct 7 17:59:14 tuvia postfix/smtpd[17982]: private/tlsmgr: wanted attribute: (list terminator) Oct 7 17:59:14 tuvia postfix/smtpd[17982]: input attribute name: (end) Oct 7 17:59:15 tuvia postfix/smtpd[17982]: xsasl_dovecot_server_create: SASL service=smtp, realm=(null) Oct 7 17:59:15 tuvia postfix/smtpd[17982]: name_mask: noanonymous Oct 7 17:59:15 tuvia postfix/smtpd[17982]: xsasl_dovecot_server_connect: Connecting Oct 7 17:59:15 tuvia postfix/smtpd[17982]: warning: SASL: Connect to private/auth failed: Connection refused Oct 7 17:59:15 tuvia postfix/smtpd[17982]: fatal: no SASL authentication mechanisms Oct 7 17:59:16 tuvia postfix/master[17145]: warning: process /usr/lib/postfix/smtpd pid 17982 exit status 1 Oct 7 17:59:16 tuvia postfix/master[17145]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling Oct 7 18:00:56 tuvia postfix/anvil[17984]: statistics: max connection rate 1/60s for (smtp:2607:f8b0:4002:c01::231) at Oct 7 17:59:14 Oct 7 18:00:56 tuvia postfix/anvil[17984]: statistics: max connection count 1 for (smtp:2607:f8b0:4002:c01::231) at Oct 7 17:59:14 Oct 7 18:00:56 tuvia postfix/anvil[17984]: statistics: max cache size 1 at Oct 7 17:59:14 4. dovecot.log does not have anything although I set the same usr:grp syslog:adm - is that correct?? (Enabling Verbose Logs on Troubleshooting guide) CAN ANYONE GUIDE ME THROUGH RESOLVING OR LOCATING THE PROBLEM??? THANK YOU! |
|
| Author: | jadeye [ Tue Oct 07, 2014 1:06 pm ] |
| Post subject: | Re: Email with Postfix, Dovecot, and MySQL |
| Author: | vonskippy [ Tue Oct 07, 2014 1:43 pm ] |
| Post subject: | Re: Email with Postfix, Dovecot, and MySQL |
TWO Whole hours before a bump - on a work day - bwahahahahaha. Just kidding, give it more time, you're asking people (who usually have a very high hourly consulting rate) to help you for FREE, so let them help you when it's convenient for THEM, plus you've given almost ZERO useful details. |
|
| Author: | jadeye [ Tue Oct 07, 2014 2:06 pm ] |
| Post subject: | Re: Email with Postfix, Dovecot, and MySQL |
I must say...you do have a point there...bwahahahahahahaha. What do you think is missing as far as details? |
|
| Author: | hoopycat [ Wed Oct 08, 2014 6:56 am ] |
| Post subject: | Re: Email with Postfix, Dovecot, and MySQL |
Configuration files? Probably would be nice to see some configuration files. Maybe "netstat -ntlp" to see what's actually listening. "ps aux" is great for finding out what's running, too... |
|
| Author: | jadeye [ Wed Oct 08, 2014 7:20 am ] |
| Post subject: | Re: Email with Postfix, Dovecot, and MySQL |
All those who bothered answering - I thank you dearly. I have managed to fix all by myself. Hope I am able to contribute to those in need in this subject! For those who get here looking for answers, I am using Thunderbird 31.1.2 Postfix 2.9.6 Dovecot 2.0.19 LAMP Self signed Server certificate Please PM. Good Luck |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|