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.
Is this the nameserver from your ISP? If it is, it is not able to resolve the domains. Instead of this, use the global 4.2.2.2 DNS and see if you can resolve.
# Generated by NetworkManager
domain localdomain
search localdomain
nameserver 192.168.142.2
Hi,
Those values need to change. Set search to google.com and nameserver to 8.8.8.8 (Google's own DNS) or the one linuxlover.chaitanya indicated. I assume you don't have your own DNS server set up or do you? The 142.2 address is that your router?
Aug 4 00:48:02 ubuntu postfix/smtp[28853]: 45C0340CCE: 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)
Ya i don't have own DNS setup. That address is the address of another windows server.
Yes and then use your user and password for your gmail account and put that in sasl_password file. Make sure you use smtp.gmail.com in sasl_password file and set smtp_cname_overrides_servername=no as well. You also need to enable tls authentication for gmail. Have noanonymous, noplaintext as security options.
relayhost (default: empty)
The next-hop destination of non-local mail; overrides non-local domains in recipient addresses. This information is overruled with relay_transport, sender_dependent_default_transport_maps, default_transport, sender_dependent_relayhost_maps and with the transport(5) table.
On an intranet, specify the organizational domain name. If your internal DNS uses no MX records, specify the name of the intranet gateway host instead.
In the case of SMTP, specify a domain name, hostname, hostname:port, [hostname]:port, [hostaddress] or [hostaddress]:port. The form [hostname] turns off MX lookups.
If you're connected via UUCP, see the UUCP_README file for useful information.
Examples:
relayhost = $mydomain
relayhost = [gateway.example.com]
relayhost = uucphost
relayhost = [an.ip.add.ress]
In short, put the domain name between [ ] as mentioned before.
Yes and then use your user and password for your gmail account and put that in sasl_password file. Make sure you use smtp.gmail.com in sasl_password file and set smtp_cname_overrides_servername=no as well. You also need to enable tls authentication for gmail. Have noanonymous, noplaintext as security options.
Sorry, a bit confusing.
Hmm, in sasl_passwd file, i had this:
Code:
[smtp.gmail.com]:587 xanios@gmail.com:p@55w0rd
So the email (xanios@gmail.com) and password 'p@55w0rd' must be the real gmail which i want to use right. the password cannot be a random one which i typed in in here but does not exist for my gmail?
this smtp_cname_overrides_servername=no is put in main.cf?
and regarding authenticating tls for gmail, is it this line:
relayhost (default: empty)
The next-hop destination of non-local mail; overrides non-local domains in recipient addresses. This information is overruled with relay_transport, sender_dependent_default_transport_maps, default_transport, sender_dependent_relayhost_maps and with the transport(5) table.
On an intranet, specify the organizational domain name. If your internal DNS uses no MX records, specify the name of the intranet gateway host instead.
In the case of SMTP, specify a domain name, hostname, hostname:port, [hostname]:port, [hostaddress] or [hostaddress]:port. The form [hostname] turns off MX lookups.
If you're connected via UUCP, see the UUCP_README file for useful information.
Examples:
relayhost = $mydomain
relayhost = [gateway.example.com]
relayhost = uucphost
relayhost = [an.ip.add.ress]
In short, put the domain name between [ ] as mentioned before.
Kind regards,
Eric
Hi,
So, i have to put all these in main.cf
Code:
relayhost = $mydomain
relayhost = [mydomainname.com]
relayhost = uucphost
relayhost = [127.0.0.1]< my ubuntu server ip address?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.