nechce mi fungovat odesílání z SendEmail přes smtp.o2isp.cz.
Odesílám to takto:
#!/bin/bash
sendemail -v -v -v -f "xxx.xxxx@yyyyy.cz" -t "moje@moje.name" -u "subject" \
-m "messagebody" -s "smtp.o2isp.cz" \
-xu "xxxxxxxxxxxx@iex.cz" -xp "999999999999"
(maily, username a heslo jsem ovšem zde změnil)
Takhle to pak vypadá:
root@MINIK:~# ./mail02
Jan 24 13:30:27 minik sendemail[21641]: DEBUG => Connecting to smtp.o2isp.cz:25
Jan 24 13:30:27 minik sendemail[21641]: DEBUG => My IP address is: 192.168.248.200
Jan 24 13:30:27 minik sendemail[21641]: DEBUG => evalSMTPresponse() - Checking for SMTP success or error status in the message: 220 port6.iol.cz ESMTP
Jan 24 13:30:27 minik sendemail[21641]: DEBUG => evalSMTPresponse() - Found SMTP success code: 220
Jan 24 13:30:27 minik sendemail[21641]: SUCCESS => Received: 220 port6.iol.cz ESMTP
Jan 24 13:30:27 minik sendemail[21641]: INFO => Sending: EHLO minik
Jan 24 13:30:27 minik sendemail[21641]: DEBUG => evalSMTPresponse() - Checking for SMTP success or error status in the message: 250-port6.iol.cz, 250-8BITMIME, 250-SIZE 13721600, 250-AUTH PLAIN LOGIN, 250 AUTH=PLAIN LOGIN
Jan 24 13:30:27 minik sendemail[21641]: DEBUG => evalSMTPresponse() - Found SMTP success code: 250
Jan 24 13:30:27 minik sendemail[21641]: SUCCESS => Received: 250-port6.iol.cz, 250-8BITMIME, 250-SIZE 13721600, 250-AUTH PLAIN LOGIN, 250 AUTH=PLAIN LOGIN
Jan 24 13:30:27 minik sendemail[21641]: DEBUG => The remote SMTP server does NOT support TLS
Jan 24 13:30:27 minik sendemail[21641]: DEBUG => SMTP-AUTH: Using PLAIN authentication method
Jan 24 13:30:27 minik sendemail[21641]: INFO => Sending: AUTH PLAIN RUxvZzFYQgDRhgJuiFdTdfTdDFreJHytDuQwNDMzOA==
Jan 24 13:30:27 minik sendemail[21641]: DEBUG => evalSMTPresponse() - Checking for SMTP success or error status in the message: 235 #2.0.0 OK Authenticated
Jan 24 13:30:27 minik sendemail[21641]: DEBUG => evalSMTPresponse() - Found SMTP success code: 235
Jan 24 13:30:27 minik sendemail[21641]: SUCCESS => Received: 235 #2.0.0 OK Authenticated
Jan 24 13:30:27 minik sendemail[21641]: DEBUG => User authentication was successful
Jan 24 13:30:27 minik sendemail[21641]: INFO => Sending: MAIL FROM:<xxx.xxxxx@yyyyy.cz>
Jan 24 13:30:27 minik sendemail[21641]: DEBUG => evalSMTPresponse() - Checking for SMTP success or error status in the message: 500 #5.5.1 command not recognized
Jan 24 13:30:27 minik sendemail[21641]: DEBUG => evalSMTPresponse() - Found SMTP error code: 500
Jan 24 13:30:27 minik sendemail[21641]: ERROR => Received: 500 #5.5.1 command not recognized
root@MINIK:~#
Dělá mi to právě tento jeden smtp. Když to zkouším poslat před další dva jiné, tak mi odesílání funguje, Bohužel musím použít právě ten smtp.o2isp.cz, protože z těch dvou dalších jeden dovoluje z venku pouze delivery, nikoliv relay a ten druhý má autentifikaci „pop before SMTP”, což asi v SendEmailu nepůjde.
22:40
No, koukám že nikdo neví, což se dalo očekávat, je to dost specifický problém. Tak to zkusím z jiné strany: neexistuje nějaká utilitka, která by provedla AUTH na zadaný poštovní server. Kdyby to nebylo SSL, tak bych si to i napsal sám.