introduzione
Nuova droplet digitalocean con Centos 6.7 i686 (Centos-release-6-7.el6.centos.12.3.i686)
Nginx 1.1.13 (generato dal codice sorgente):
Cyrus:
$ sudo yum install cyrus-sasl cyrus-imapd $ sudo vi vi /etc/cyrus.conf: -> https://gist.github.com/c80609a/7190c4981365447063ce2e06a517d9fd $ sudo vi /etc/sasl2/smtpd.conf: -> pwcheck_method: auxprop -> auxprop_plugin: sasldb -> mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5 ... $ sudo chkconfig --level 345 cyrus-imapd on $ sudo service cyrus-imapd start $ sudo service cyrus-imapd status -> cyrus-imapd (pid 1851) is running...
POSTFIX (postfix-2.6.6-6.el6_7.1.i686)
$ sudo yum install postfix $ sudo vi /etc/postfix/master.cf -> https://gist.github.com/c80609a/07b397d2baa7455896bb704aa2a7479a $ sudo vi /etc/postfix/main.cf -> https://gist.github.com/c80609a/831168401df84b395c393b09a3cda384 $ sudo vi /etc/postfix/virtual: webmaster@site.org webmaster\@site.org $ sudo postmap /etc/postfix/virtual $ sudo touch /etc/postfix/body_checks $ sudo service postfix stop $ sudo service postfix reload $ sudo postfix upgrade-configuration $ sudo service postfix start $ sudo service postfix status master (pid 16811) is running... $ sudo postfix status postfix/postfix-script: the Postfix mail system is running: PID: 16811
Aggiunti due record (digitalocean.com - & gt; login - & gt; networking):
A mail 95.85.24.200 MX 5 mail.site.org.
Mail inviata con successo:
$ echo 'test' | mail -s 'test' my@mail.ru
I problemi
Connessione Telnet rifiutata:
$ telnet localhost 25 Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... Connected to localhost. Escape character is '^]'.
Prova l'host di Google - OK:
$ telnet gmail-smtp-in.l.google.com 25 Trying 74.125.136.26... Connected to gmail-smtp-in.l.google.com. Escape character is '^]'. 220 mx.google.com ESMTP t6si2618629wjt.255 - gsmtp quit 221 2.0.0 closing connection t6si2618629wjt.255 - gsmtp Connection closed by foreign host.
Uscita netstat inaspettata ( l'ultima colonna non è definita ):
$ netstat -ln |grep :25 tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
Risultato atteso:
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 16811/master
Come posso risolvere questi problemi?