Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
relayhost = smtp.gmail.com:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = /etc/postfix/sasl_auth << your file where you have stored gmail user and password
smtp_sasl_security_options = noanonymous, noplaintext
relayhost = smtp.gmail.com:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = /etc/postfix/sasl_auth << your file where you have stored gmail user and password
smtp_sasl_security_options = noanonymous, noplaintext
i manually added this > smtp.gmail.com:587 for the relay in main.cf, wanted to use echo smtp.gmail.com user@gmail.comassword > /etc/postfix/sasl_password but they gave me bash: /etc/postfix/sasl_password: Permission denied. Well, i guess even if i manually add the line it should be the same(:
add on: i realised that it should be sasl_passwd is it.
Anyways,
i got this output when i run the postmap command for sasl_passwd and restarted postfix:
Code:
xanios@ubuntu:~$ sudo postmap /etc/postfix/sasl_passwd
xanios@ubuntu:~$ sudo /etc/init.d/postfix restart
* Stopping Postfix Mail Transport Agent postfix [ OK ]
* Starting Postfix Mail Transport Agent postfix [ OK ]
xanios@ubuntu:~$ tail -n 20 /var/log/mail.log
Aug 3 17:22:47 ubuntu postfix/qmgr[5060]: 1A0D140BEF: from=<xanios@server.com>, size=292, nrcpt=1 (queue active)
Aug 3 17:22:47 ubuntu postfix/qmgr[5060]: 13C3F40BF1: from=<>, size=1746, nrcpt=1 (queue active)
Aug 3 17:23:07 ubuntu postfix/smtp[14357]: warning: relayhost configuration problem
Aug 3 17:23:07 ubuntu postfix/smtp[14357]: 1A0D140BEF: to=<xanios@gmail.com>, relay=none, delay=50940, delays=50920/0.02/20/0, dsn=4.3.5, status=deferred (unable to look up host smtp.gmail.com: No address associated with hostname)
Aug 3 17:23:07 ubuntu postfix/smtp[14358]: warning: relayhost configuration problem
Aug 3 17:23:07 ubuntu postfix/smtp[14358]: 13C3F40BF1: to=<xanios@server.com>, relay=none, delay=50919, delays=50899/0.03/20/0, dsn=4.3.5, status=deferred (unable to look up host smtp.gmail.com: No address associated with hostname)
Aug 3 17:32:23 ubuntu postfix/master[5056]: terminating on signal 15
Aug 3 17:32:23 ubuntu postfix/master[14588]: daemon started -- version 2.6.5, configuration /etc/postfix
Aug 3 17:32:49 ubuntu postfix/pickup[14589]: DA7B940BF4: uid=1000 from=<xanios>
Aug 3 17:32:49 ubuntu postfix/cleanup[14602]: DA7B940BF4: message-id=<20100804003249.DA7B940BF4@ubuntu>
Aug 3 17:32:49 ubuntu postfix/qmgr[14592]: DA7B940BF4: from=<xanios@server.com>, size=285, nrcpt=1 (queue active)
Aug 3 17:33:09 ubuntu postfix/smtp[14604]: warning: relayhost configuration problem
Aug 3 17:33:10 ubuntu postfix/smtp[14604]: DA7B940BF4: to=<xanios@gmail.com>, relay=none, delay=20, delays=0.05/0.03/20/0, dsn=4.3.5, status=deferred (unable to look up host smtp.gmail.com: No address associated with hostname)
Aug 3 17:33:10 ubuntu postfix/cleanup[14602]: 035BB40BF6: message-id=<20100804003310.035BB40BF6@ubuntu>
Aug 3 17:33:10 ubuntu postfix/bounce[14610]: DA7B940BF4: sender delivery status notification: 035BB40BF6
Aug 3 17:33:10 ubuntu postfix/qmgr[14592]: 035BB40BF6: from=<>, size=1768, nrcpt=1 (queue active)
Aug 3 17:33:30 ubuntu postfix/smtp[14604]: warning: relayhost configuration problem
Aug 3 17:33:30 ubuntu postfix/smtp[14604]: 035BB40BF6: to=<xanios@server.com>, relay=none, delay=20, delays=0.01/0/20/0, dsn=4.3.5, status=deferred (unable to look up host smtp.gmail.com: No address associated with hostname)
Aug 3 17:34:31 ubuntu postfix/master[14588]: terminating on signal 15
Aug 3 17:34:32 ubuntu postfix/master[14733]: daemon started -- version 2.6.5, configuration /etc/postfix
I suppose i have to re-run postmap for sasl_passwd and restart postfix everytime i change something in the main.cf am i right?
When i added smtp.gmail.com:587 to relay in main.cf,
i got this:
Code:
Aug 3 17:43:11 ubuntu postfix/error[14884]: 66B5B40A5A: to=<layleng@server.com>, relay=none, delay=0.01, delays=0/0/0/0, dsn=4.3.5, status=deferred (delivery temporarily suspended: unable to look up host smtp.gmail.com: No address associated with hostname)
the error seems to return to the same previous one. aww ):
Add on:
Code:
xanios@ubuntu:~$ tail -n 20 /var/log/mail.log
Aug 3 17:39:52 ubuntu postfix/error[14817]: BAACD40A58: to=<xanios@gmail.com>, relay=none, delay=67810, delays=67790/20/0/0, dsn=4.3.5, status=deferred (delivery temporarily suspended: unable to look up host smtp.gmail.com: No address associated with hostname)
Aug 3 17:42:52 ubuntu postfix/postsuper[14873]: Deleted: 93 messages
Aug 3 17:43:11 ubuntu postfix/pickup[14736]: 5D14D40A58: uid=1000 from=<xanios>
Aug 3 17:43:11 ubuntu postfix/cleanup[14882]: 5D14D40A58: message-id=<20100804004311.5D14D40A58@ubuntu>
Aug 3 17:43:11 ubuntu postfix/qmgr[14737]: 5D14D40A58: from=<xanios@server.com>, size=286, nrcpt=1 (queue active)
Aug 3 17:43:11 ubuntu postfix/error[14884]: 5D14D40A58: to=<xanios@gmail.com>, relay=none, delay=0.04, delays=0.03/0.01/0/0.01, dsn=4.3.5, status=deferred (delivery temporarily suspended: unable to look up host smtp.gmail.com: No address associated with hostname)
Aug 3 17:43:11 ubuntu postfix/cleanup[14882]: 66B5B40A5A: message-id=<20100804004311.66B5B40A5A@ubuntu>
Aug 3 17:43:11 ubuntu postfix/bounce[14886]: 5D14D40A58: sender delivery status notification: 66B5B40A5A
Aug 3 17:43:11 ubuntu postfix/qmgr[14737]: 66B5B40A5A: from=<>, size=1832, nrcpt=1 (queue active)
Aug 3 17:43:11 ubuntu postfix/error[14884]: 66B5B40A5A: to=<xanios@server.com>, relay=none, delay=0.01, delays=0/0/0/0, dsn=4.3.5, status=deferred (delivery temporarily suspended: unable to look up host smtp.gmail.com: No address associated with hostname)
Aug 3 17:44:01 ubuntu postfix/postsuper[14910]: Deleted: 2 messages
Aug 3 17:44:17 ubuntu postfix/master[14733]: terminating on signal 15
Aug 3 17:44:18 ubuntu postfix/master[15026]: daemon started -- version 2.6.5, configuration /etc/postfix
Aug 3 17:45:13 ubuntu postfix/master[15026]: terminating on signal 15
Aug 3 17:45:15 ubuntu postfix/master[15172]: daemon started -- version 2.6.5, configuration /etc/postfix
Aug 3 17:47:47 ubuntu postfix/master[15172]: terminating on signal 15
Aug 3 17:47:48 ubuntu postfix/master[15332]: daemon started -- version 2.6.5, configuration /etc/postfix
Aug 3 17:50:38 ubuntu postfix/pickup[15333]: 7991840A58: uid=1000 from=<xanios>
Aug 3 17:50:38 ubuntu postfix/cleanup[15377]: 7991840A58: message-id=<20100804005038.7991840A58@ubuntu>
Aug 3 17:50:38 ubuntu postfix/qmgr[15336]: 7991840A58: from=<xanios@server.com>, size=285, nrcpt=1 (queue active)
i send a mail again and this is the latest one.
OMG, it is back to the same error T__T
Code:
Aug 3 18:27:44 ubuntu postfix/error[1815]: B574A40BA7: to=<xanios@server.com>, relay=none, delay=0.04, delays=0.04/0/0/0, dsn=4.3.5, status=deferred (delivery temporarily suspended: unable to look up host smtp.gmail.com: No address associated with hostname)
Sorry, this is the latest output:
Code:
xanios@ubuntu:~$ tail -n 20 /var/log/mail.log
Aug 3 20:07:22 ubuntu postfix/error[30072]: 3F08940B97: to=<xanios@gmail.com>, relay=none, delay=617, delays=597/20/0/0.01, dsn=4.3.5, status=deferred (delivery temporarily suspended: unable to look up host smtp.gmail.com: No address associated with hostname)
Aug 3 20:07:22 ubuntu postfix/error[30075]: 35BE540B45: to=<xanios@gmail.com>, relay=none, delay=2267, delays=2247/20/0/0.01, dsn=4.3.5, status=deferred (delivery temporarily suspended: unable to look up host smtp.gmail.com: No address associated with hostname)
Aug 3 20:07:22 ubuntu postfix/error[30069]: 3C4D440BAD: to=<xanios@gmail.com>, relay=none, delay=567, delays=547/20/0/0.04, dsn=4.3.5, status=deferred (delivery temporarily suspended: unable to look up host smtp.gmail.com: No address associated with hostname)
Aug 3 20:07:22 ubuntu postfix/error[30077]: 3D88E40B49: to=<xanios@gmail.com>, relay=none, delay=2217, delays=2197/20/0/0.04, dsn=4.3.5, status=deferred (delivery temporarily suspended: unable to look up host smtp.gmail.com: No address associated with hostname)
Aug 3 20:07:22 ubuntu postfix/error[30070]: 3CB7040BB0: to=<xanios@gmail.com>, relay=none, delay=557, delays=537/20/0/0, dsn=4.3.5, status=deferred (delivery temporarily suspended: unable to look up host smtp.gmail.com: No address associated with hostname)
Aug 3 20:07:22 ubuntu postfix/error[30075]: 182EE40BC4: to=<xanios@gmail.com>, relay=none, delay=413, delays=393/20/0/0, dsn=4.3.5, status=deferred (delivery temporarily suspended: unable to look up host smtp.gmail.com: No address associated with hostname)
Aug 3 20:07:22 ubuntu postfix/error[30074]: 09E2540B9B: to=<xanios@gmail.com>, relay=none, delay=608, delays=587/20/0/0.04, dsn=4.3.5, status=deferred (delivery temporarily suspended: unable to look up host smtp.gmail.com: No address associated with hostname)
Aug 3 20:07:22 ubuntu postfix/error[30078]: 612F140BA7: to=<xanios@gmail.com>, relay=none, delay=597, delays=577/20/0/0.04, dsn=4.3.5, status=deferred (delivery temporarily suspended: unable to look up host smtp.gmail.com: No address associated with hostname)
Aug 3 20:07:22 ubuntu postfix/error[30069]: 13F9440B9D: to=<xanios@gmail.com>, relay=none, delay=608, delays=587/20/0/0.04, dsn=4.3.5, status=deferred (delivery temporarily suspended: unable to look up host smtp.gmail.com: No address associated with hostname)
Aug 3 20:07:22 ubuntu postfix/error[30072]: 1EE7040B41: to=<xanios@gmail.com>, relay=none, delay=2338, delays=2317/20/0/0.04, dsn=4.3.5, status=deferred (delivery temporarily suspended: unable to look up host smtp.gmail.com: No address associated with hostname)
Aug 3 20:07:23 ubuntu postfix/smtpd[9437]: connect from localhost[127.0.0.1]
Aug 3 20:07:23 ubuntu postfix/smtpd[9437]: disconnect from localhost[127.0.0.1]
Aug 3 20:08:22 ubuntu postfix/smtpd[9437]: connect from localhost[127.0.0.1]
Aug 3 20:08:22 ubuntu postfix/smtpd[9437]: disconnect from localhost[127.0.0.1]
Aug 3 20:08:23 ubuntu postfix/smtpd[9437]: connect from localhost[127.0.0.1]
Aug 3 20:08:23 ubuntu postfix/smtpd[9437]: disconnect from localhost[127.0.0.1]
Aug 3 20:09:22 ubuntu postfix/smtpd[9437]: connect from localhost[127.0.0.1]
Aug 3 20:09:22 ubuntu postfix/smtpd[9437]: disconnect from localhost[127.0.0.1]
Aug 3 20:09:23 ubuntu postfix/smtpd[9437]: connect from localhost[127.0.0.1]
Aug 3 20:09:23 ubuntu postfix/smtpd[9437]: disconnect from localhost[127.0.0.1]
nslookup smtp.gmail.com should be the command. What you did was just open the nslookup prompt. You can type the domain there as well.
This is the output for nslookup for smtp.gmail.com
Code:
Non-authoritative answer:
smtp.gmail.com canonical name = gmail-smtp-msa.l.google.com.
Name: gmail-smtp-msa.l.google.com <<--- Use this instead of smtp.gmail.com in relayhost option.
Address: 72.14.213.109
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.