14 gennaio 2011 Roberto Puzzanghera0 commenti
netstat
testOra che quasi tutti i servizi sono stati installati, possiamo controllare che le porte riguardanti il mail server siano aperte e attive come ci si aspetta:
# netstat -plntu Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 17141/dovecot tcp 0 0 127.0.0.1:3310 0.0.0.0:* LISTEN 15754/clamd tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 17141/dovecot tcp 0 0 0.0.0.0:89 0.0.0.0:* LISTEN 17120/tcpserver tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 17118/tcpserver tcp 0 0 0.0.0.0:4190 0.0.0.0:* LISTEN 17141/dovecot tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 17141/dovecot tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 17141/dovecot tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 17117/tcpserver
Il seguente test con la password in chiaro funzionerà solo da localhost. Gli altri IP possono connettersi solo in modalità sicura.
# telnet [your-IP] 110 Trying [your-IP]... Connected to [your-IP]. Escape character is '^]'. +OK Dovecot ready. user test@yourdomain.net +OK pass [PASSWORD] +OK Logged in. quit +OK Logging out. Connection closed by foreign host.
Controlliamo anche la modalità in connessione sicura sulla porta 995
openssl s_client -connect [your-IP]:995
Ora testiamo il server IMAP. Il seguente test con la password in chiaro funzionerà solo da localhost.
# telnet [your-IP] 143 Trying [your-IP]... Connected to [your-IP]. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5] Dovecot ready. a login test@yourdomain.net [PASSWORD] a OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA] Logged in a select inbox * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted. * 0 EXISTS * 0 RECENT * OK [UIDVALIDITY 1287576448] UIDs valid * OK [UIDNEXT 1] Predicted next UID * OK [HIGHESTMODSEQ 1] Highest a OK [READ-WRITE] Select completed. a list "" * * LIST (\HasNoChildren) "." "INBOX" a OK List completed. a logout * BYE Logging out a OK Logout completed. Connection closed by foreign host.
Abbiamo testato la connessione e se il server sia in grado di trovare la mailbox. Come si può vedere l'unica cartella è INBOX.
Testiamo anche la connessione sicura sulla porta 993:
openssl s_client -connect [your-IP]:993
qmail-smtpd: read failed (hang up before quit cmd)
8 marzo 2021 19:32
Autoresponder & SpamAssasin are not working good togheder
8 marzo 2021 18:18
qmail-smtpd: read failed (hang up before quit cmd)
8 marzo 2021 12:53
qmail-smtpd and OAUTH
2 marzo 2021 10:29
problem with passwords containing special characters like %
2 marzo 2021 10:24
qmail-smtpd and OAUTH
1 marzo 2021 15:22
problem with passwords containing special characters like %
28 febbraio 2021 12:26
problem with passwords containing special characters like %
26 febbraio 2021 22:02
problem with passwords containing special characters like %
26 febbraio 2021 10:05
What about using --disable-many-domains on vpopmail configure ?
22 febbraio 2021 16:49
Tags
apache clamav dkim dovecot ezmlm fail2ban ftp guide hacks lamp letsencrypt linux linux-vserver lxc mariadb mediawiki mozilla mysql openboard owncloud patches php proftpd qmail qmailadmin rbl roundcube rsync sieve simscan slackware spamassassin spf ssh ssl tcprules tex ucspi-tcp vpopmail vqadmin