Hi Stan, I checked the log and I found out that the email was not sent because of authentication issues. But, I checked the /etc/postfix/sasl_passwd and the username and password is correct. I copied the same info into my local machine and it's working fine. The log contains following information:
Jan 28 03:24:35 library postfix/qmgr[6359]: D98DA1C940: from=< [email protected]>, size=356, nrcpt=1 (queue active) Jan 28 03:24:36 library postfix/smtp[6361]: D98DA1C940: SASL authentication failed; server smtp.gmail.com[173.194.64.108] said: 535-5.7.1 Please log in with your web browser and then try again. Learn more at?535 5.7.1 https://support.google.com/mail/bin/answer.py?answer=78754 7sm7386969obu.4 - gsmtp Jan 28 03:24:37 library postfix/smtp[6361]: D98DA1C940: to=< [email protected]>, relay=smtp.gmail.com[173.194.64.109]:587, delay=6464, delays=6462/0.08/1.1/0, dsn=4.7.1, status=deferred (SASL authentication failed; server smtp.gmail.com[173.194.64.109] said: 535-5.7.1 Please log in with your web browser and then try again. Learn more at?535 5.7.1 https://support.google.com/mail/bin/answer.py?answer=78754ow7sm5796998obc.20 - gsmtp) Any suggestions will be appreciated. Thank you. Dibyendra Hyoju On Sun, Jan 27, 2013 at 4:35 PM, Stan Hoeppner <[email protected]>wrote: > On 1/27/2013 4:21 AM, Dibyendra Hyoju wrote: > > > Postfix seems to be working but it's not sending email, maybe because of > > the configurations? > > > > root@library:/home/madan# telnet localhost 25 > > Trying 127.0.0.1... > > Connected to localhost. > > Escape character is '^]'. > > 220 library.net.np ESMTP Postfix (Debian/GNU) > > mail from:[email protected] > > 250 2.1.0 Ok > > rcpt to:[email protected] > > 250 2.1.5 Ok > > data > > 354 End data with <CR><LF>.<CR><LF> > > subject:tst > > testing from shibb > > . > > 250 2.0.0 Ok: queued as AFD841C927 > > quit > > 221 2.0.0 Bye > > Connection closed by foreign host. > > Postfix queued the message. Given the sender and recipient addresses > you used, it would appear you might be an open relay, which you > obviously don't want to be. Check your logs to see if Postfix attempted > delivery of this msg to gmail.com. And fix your configuration so > Postfix won't relay mail to arbitrary domains. > > -- > Stan > > >
