I`m <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span>

((It still doesn`t work.
first - without authentication
Switf message
Failed
Mailserv logs:
Dec 25 10:36:33 bb-mailserv postfix/smtpd[22656]: connect from xxx.tpnet.pl[xxxx]
Dec 25 10:36:34 bb-mailserv postfix/smtpd[22656]: NOQUEUE: reject: RCPT from xxx[xxx]: 554 5.7.1 <taisu[at]wp.pl>: Relay access denied; from=<technik[at]bluebyte.net.pl> to=<taisu[at]wp.pl> proto=ESMTP helo=<[127.0.0.1]>
Dec 25 10:36:34 bb-mailserv postfix/smtpd[22656]: lost connection after RSET from xxx.[xxxx]
Dec 25 10:36:34 bb-mailserv postfix/smtpd[22656]: disconnect from xxx.tpnet.pl[xxx]
used code:
Code: Select all
$conn =& new Swift_Connection_SMTP("bluebyte.net.pl");
$swift =& new Swift($conn);
//Create the message
$message =& new Swift_Message("My subject", "My body");
$recipients =& new Swift_RecipientList();
$recipients->addTo("taisu@wp.pl");
if($swift->batchSend($message, $recipients, "technik@bluebyte.net.pl")) echo Sent;
else echo "Failed";
then with authenticator
Swit message (simmilar, it doesn`t matter if I`ve use tls, or ssl)
Fatal error: Uncaught exception 'Swift_ConnectionException' with message 'The SMTP connection failed to start [tls://bluebyte.net.pl:465]: fsockopen returned Error Number 10060 and Error String 'Próba po?šczenia nie powiod?a si?, poniewa? po?šczona strona nie odpowiedzia?a poprawnie po ustalonym okresie czasu lub utworzone po?šczenie nie powiod?o si?, poniewa? po?šczony host nie odpowiedzia?. '' in E:\AppServ 2.4.6\www\air2\funkcje\swift_mailer_v3.3.3\Swift\Connection\SMTP.php:309 Stack trace: #0 E:\AppServ 2.4.6\www\air2\funkcje\swift_mailer_v3.3.3\Swift.php(216): Swift_Connection_SMTP->start() #1 E:\AppServ 2.4.6\www\air2\funkcje\swift_mailer_v3.3.3\Swift.php(101): Swift->connect() #2 E:\AppServ 2.4.6\www\air2\testowy2.php(6): Swift->__construct(Object(Swift_Connection_SMTP)) #3 {main} thrown in E:\AppServ 2.4.6\www\air2\funkcje\swift_mailer_v3.3.3\Swift\Connection\SMTP.php on line 309
Nothing in mailserver logs
used code:
Code: Select all
$conn = new Swift(new Swift_Connection_SMTP("bluebyte.net.pl", 465, Swift_Connection_SMTP::ENC_TLS));
$conn->attachAuthenticator(new Swift_Authenticator_LOGIN());
$conn->setUsername("technik");
$conn->setPassword("xxxxx");
$swift =& new Swift($conn);
//Create the message
$message =& new Swift_Message("My subject", "My body");
$recipients =& new Swift_RecipientList();
$recipients->addTo("taisu@wp.pl");
if($swift->batchSend($message, $recipients, "technik@bluebyte.net.pl")) echo Sent;
else echo "Failed";
Of course I`ve changed
conn = new Swift(new Swift_Connection_SMTP("bluebyte.net.pl", 465, Swift_Connection_SMTP::ENC_TLS));
with SSL, TLS and diffrent ports as you wrote earlier. Don`t know what I`m making wrong.
and that`s how it looks, when I`ll use Thunderbird
mailserver logs
Dec 25 13:25:29 bb-mailserv postfix/smtpd[3664]: connect from xxxx.tpnet.pl[xxxx]
Dec 25 13:25:34 bb-mailserv postfix/smtpd[3664]: 55CDAE54068: client=xxxxtpnet.pl[xxxx], sasl_method=PLAIN, sasl_username=technik[at]bluebyte.net.pl
Dec 25 13:25:34 bb-mailserv postfix/cleanup[3692]: 55CDAE54068: message-id=<49537BCA.3080501[at]bluebyte.net.pl>
Dec 25 13:25:34 bb-mailserv postfix/qmgr[5467]: 55CDAE54068: from=<technik[at]bluebyte.net.pl>, size=637, nrcpt=1 (queue active)
Dec 25 13:25:34 bb-mailserv postfix/smtpd[3664]: disconnect from xxxx.tpnet.pl[xxxx]
Dec 25 13:25:34 bb-mailserv amavis[11882]: (11882-04) NOTICE: reconnecting in response to: err=2006, S1000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 40) line 153, <GEN40> line 5.
Dec 25 13:25:35 bb-mailserv postfix/smtpd[3697]: connect from localhost[127.0.0.1]
Dec 25 13:25:35 bb-mailserv postfix/smtpd[3697]: EC757E5406B: client=localhost[127.0.0.1]
Dec 25 13:25:36 bb-mailserv postfix/cleanup[3692]: EC757E5406B: message-id=<49537BCA.3080501[at]bluebyte.net.pl>
Dec 25 13:25:36 bb-mailserv postfix/qmgr[5467]: EC757E5406B: from=<technik[at]bluebyte.net.pl>, size=1112, nrcpt=1 (queue active)
Dec 25 13:25:36 bb-mailserv postfix/smtpd[3697]: disconnect from localhost[127.0.0.1]
Dec 25 13:25:36 bb-mailserv amavis[11882]: (11882-04) Passed CLEAN, [xxxx] [xxxx] <technik[at]bluebyte.net.pl> -> <taisu[at]wp.pl>, Message-ID: <49537BCA.3080501[at]bluebyte.net.pl>, mail_id: Ohg6Lupn9doI, Hits: 2.683, queued_as: EC757E5406B, 1539 ms
Dec 25 13:25:36 bb-mailserv postfix/smtp[3693]: 55CDAE54068: to=<taisu[at]wp.pl>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.9, delays=0.28/0.03/0.01/1.5, dsn=2.6.0, status=sent (250 2.6.0 Ok, id=11882-04, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as EC757E5406B)
Dec 25 13:25:36 bb-mailserv postfix/qmgr[5467]: 55CDAE54068: removed
Dec 25 13:25:45 bb-mailserv postfix/smtp[3700]: EC757E5406B: to=<taisu[at]wp.pl>, relay=mx.wp.pl[212.77.101.4]:25, delay=9.1, delays=0.08/0.03/0.1/8.9, dsn=2.0.0, status=sent (250 ok 1230207945 qp 25977)
Dec 25 13:25:45 bb-mailserv postfix/qmgr[5467]: EC757E5406B: removed