Per testare il funzionamento di un server smtp, è possibile fare una connessione telnet sulla porta 25 ed eseguire i vari comandi. Se però non volete perdere tempo a scrivere, c’è una pratica utility in perl che può farlo per voi. Parliamo di swaks.
Dopo aver scaricato il codice o installato il pacchetto con il classico apt-get install swaks, petete dare un’occhiata alla documentazione ed iniziare ad usarlo.
Ad esempio, un test:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | ./swaks--toblog@smsoft.it-smail.mailserver.com-aPLAIN-fnoreply@mailserver.com-au noreply@mailserver.com-ap udz6p2c5r ===Trying mail.mailserver.com:25... ===Connected towww.mailserver.com. <- 220mail.mailserver.comESMTP Postfix(Debian/GNU) ->EHLO me.local <- 250-mail.mailserver.com <- 250-PIPELINING <- 250-SIZE15728640 <- 250-ETRN <- 250-STARTTLS <- 250-AUTH PLAIN LOGIN <- 250-AUTH=PLAIN LOGIN <- 250-ENHANCEDSTATUSCODES <- 250-8BITMIME <- 250DSN ->AUTH PLAIN Ath455vcmVlAY2hlYXB2RlLmNvbQB1Ym5kemcDJj <- 2352.7.0Authentication successful ->MAIL FROM:<noreply@mailserver.com> <- 2502.1.0Ok ->RCPT TO:<blog@smsoft.it> <- 2502.1.5Ok ->DATA <- 354Enddata with<CR><LF>.<CR><LF> ->Date:Tue,15Jan201311:00:30+0100 ->To:blog@smsoft.it ->From:noreply@mailserver.com ->Subject:testTue,15Jan201311:00:30+0100 ->X-Mailer:swaks v20120320.0jetmore.org/john/code/swaks/ -> ->Thisisatestmailing -> ->. <- 2502.0.0Ok:queued as915FE1A000A8 ->QUIT <- 2212.0.0Bye ===Connection closed with remote host. |
enjoy!
Ti interessa acquistare un dominio a prezzi ultraconvenienti? clicca qui
Se hai trovato utili le informazioni su questo blog,
Fai una donazione!
Clicca sul bottone qui sotto o almeno clicca sul banner pubblicitario 🙂
Commenta