Tak jsem naistaloval vyse zminene baliky. V /etc/nullmailer/remotes mam smtp.o2isp.cz smtp --port=25 --user=jmeno --pass=heslo
Takhle to psali v man nullmailer-send. remotes
This file contains a list of remote servers to which to send each message. Each line of this file contains a remote host name or address
followed by an optional protocol string, separated by white space. The protocol name defaults to smtp, and may be followed by command-line
arguments for that module. For example, to connect to port 2525 on your SMTP smart host, which also requires SMTP authentication, use:
smarthost.dom smtp --port=2525 --user=user --pass=pass
If your smarthost requires LOGIN authentication instead of the default PLAIN method, use:
smarthost.dom smtp --port=2525 --auth-login --user=user --pass=pass
Zkousel jsem i druhou variantu s --auth-login ale nic se neodeslalo. Jeste prilozim vypis ze syslog po prvnim a druhem pokusu.
truhlik@ubuntu:/var/mail$ cat /var/log/syslog | tail
Mar 10 10:30:02 ubuntu nullmailer[9994]: Starting delivery: protocol: smtp host: smtp.o2isp.cz file: 1205141222.10003
Mar 10 10:30:02 ubuntu nullmailer[10020]: smtp: Failed: 535 Error: authentication failed
Mar 10 10:30:02 ubuntu nullmailer[9994]: Sending failed: Permanent error in sending the message
Mar 10 10:30:02 ubuntu nullmailer[9994]: Delivery complete, 1 message(s) remain.
Mar 10 10:31:02 ubuntu nullmailer[9994]: Rescanning queue.
Mar 10 10:31:02 ubuntu nullmailer[9994]: Starting delivery, 1 message(s) in queue.
Mar 10 10:31:02 ubuntu nullmailer[9994]: Starting delivery: protocol: smtp host: smtp.o2isp.cz file: 1205141222.10003
Mar 10 10:31:02 ubuntu nullmailer[10035]: smtp: Failed: 535 Error: authentication failed
Mar 10 10:31:02 ubuntu nullmailer[9994]: Sending failed: Permanent error in sending the message
Mar 10 10:31:02 ubuntu nullmailer[9994]: Delivery complete, 1 message(s) remain.
Druhy syslog:
Mar 10 10:34:12 ubuntu nullmailer[10196]: Trigger pulled.
Mar 10 10:34:12 ubuntu nullmailer[10196]: Rescanning queue.
Mar 10 10:34:12 ubuntu nullmailer[10196]: Starting delivery, 2 message(s) in queue.
Mar 10 10:34:12 ubuntu nullmailer[10196]: Starting delivery: protocol: smtp host: smtp.o2isp.cz file: 1205141652.10207
Mar 10 10:34:12 ubuntu nullmailer[10210]: smtp: Failed: 535 Error: authentication failed
Mar 10 10:34:12 ubuntu nullmailer[10196]: Sending failed: Permanent error in sending the message
Mar 10 10:34:12 ubuntu nullmailer[10196]: Starting delivery: protocol: smtp host: smtp.o2isp.cz file: 1205141222.10003
Mar 10 10:34:12 ubuntu nullmailer[10211]: smtp: Failed: 535 Error: authentication failed
Mar 10 10:34:12 ubuntu nullmailer[10196]: Sending failed: Permanent error in sending the message
Mar 10 10:34:12 ubuntu nullmailer[10196]: Delivery complete, 2 message(s) remain.
Nic moc zajimavyho tam neni, akorat to proste selze na autentifikaci. Poskytovatel O2 pise na strankach toto:
Odchozí server SMTP
Použití:
SMTP je určen pro přenos zpráv elektronické pošty (e-mailů) mezi stanicemi. Protokol zajišťuje doručení pošty pomocí přímého spojení mezi odesílatelem a adresátem. Zpráva je doručena do tzv. poštovní schránky adresáta, ke které potom může uživatel kdykoli (off-line) přistupovat (vybírat zprávy) pomocí protokolů POP3 nebo IMAP.
Nastavení v naší síti:
Adresa: smtp.o2isp.cz
Standardní port: 25
Šifrované připojení SSL-port: 465
Ověření: zadávají se přihlašovací údaje ve tvaru viz informace nastavení ověření.
Pozn.: v poštovním klientu je nutné nastavit, že server odchozí pošty požaduje ověření a zadat přihlašovací údaje ve formátu viz informace nastavení ověření.