These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for non delivered email messages on the new forum.
1) my wordpress can not send emails. It says SENDMAIL was wrong or not available. 2) Some customers don't get emails from my server after placing orders (opencart). I went to roundcube where I found many emails rejected by the recepient server with this message in it...
USER@comcast.net>: host mx2.comcast.net[76.96.40.147] said: 550 5.1.0 Invalid sender domain (in reply to MAIL FROM command)
thank you! Gabriele
What distribution are you using? Are you using Virtualmin? Do you have Postfix installed?
If Ubuntu/Debian and Postfix is available: What output do you get for the command
hostname
andhostname -f
? What's in your file/etc/mailname
? What's the output ofpostconf -n
?(When you post shell listings, please enclose them in
[code]
[/code] tags.)Q: What distribution are you using? Are you using Virtualmin? Do you have Postfix installed? A: latest CentOS
hostname >> CentOS-65-64-minimal hostname -f >> CentOS-65-64-minimal
/etc/mailname >> no such file or directory
postconf -n
Okay, the hostname results are probably your problem. Your system needs an externally resolvable valid FQDN (fully qualified domain name).
hostname
should return something like "myserver", andhostname -f
should return "myserver.mydomain.com".Otherwise when destination mailservers try to check the domain of the delivering system, they stumble over the invalid hostname you have now and refuse mail.
You need to get a valid FQDN and assign it properly to your server. Unfortunately I don't know which files to edit under CentOS for that (Ubuntu/Debian guy myself), but Eric should know.
You should also properly configure the reverse DNS entry for your server, so that your IP resolved to the hostname your Postfix presents. This is usually done at your hoster's control panel.
Alright thank a lot for all this and let's hope Eric will take over to guide me tthrough the process. thank you again
Yes I have Postfix installed and I set the "What domain to use in outbound mail" to "Use domainname" I am hosting more than one domain.
Eric where are you? :)
Howdy,
To set your hostname, you can use Webmin for that. Just click Webmin -> Networking -> Network Configuration -> Hostname and DNS Client.
-Eric
Eric, I changed the hostname from CentOS-65-64-minimal to a different one (I don't even know why I had to) and now I can't even receive emails to non of the email addresses set on any of the virtual servers accounts.
Please get abck to me asap! thanks
PS: Pelase read this topic from the beginning. thank you
Just to make it clear... the messages sent from my gmail to my domain names mail accounts don't evern get to the server (webmin > Read User Mail). Mailboxes are empty
I am getting bounces to gmail with the following
Host or domain name not found. Name service error for name=localdomain.localdomain type=AAAA: Host not found
Howdy,
You may want to make sure your hostname exists on the "mydestination" line of /etc/postfix/main.cf. If you modify that file, make sure you restart Postfix afterwards.
You can use the email logs in /var/log/maillog to assist you in tracking down any problems if you continue to have issues.
-Eric
Ok this is getting heavy for me...
I have changed the hostname to gggroup
hostname = gggroupthen I added the domain name to the /etc/sysconfig/network so... HOSTNAME=gggroup.gggroup.biz
I restarted the network
hostname -f results inhostname: Unknown host
I can reach my website via browser through my IP address.
Eric, please help me out. My email system is completely down. thanks a lot
Final-Recipient: rfc822; mail.gggadmin@localdomain.localdomain Original-Recipient: rfc822;mail@gggroup.biz Action: failed Status: 5.4.4 Diagnostic-Code: X-Postfix; Host or domain name not found. Name service error for name=localdomain.localdomain type=AAAA: Host not found
this is what I get when I send email to any of the addresses hosted on my server