Hi
I need to set some of our boxes to send mail through our smarthost. In the sendmail.mc file i have set the smarthost and rebuilt the sendmail.cf file. When i send a mail locally on the box though i get this error
Diagnostic-Code: SMTP; 553 5.1.8 root@localhost.localdomain... Domain of sender address root@localhost.localdomain does not exist
What else do i need to edit as there is something that talks about sending from unresolvable domains but this is already allowed i think
FEATURE(`accept_unresolvable_domains')dnl
any ideas ?
thanks
On 13/11/06, Tom Brown tom@ng23.net wrote:
Hi
I need to set some of our boxes to send mail through our smarthost. In the sendmail.mc file i have set the smarthost and rebuilt the sendmail.cf file. When i send a mail locally on the box though i get this error
Diagnostic-Code: SMTP; 553 5.1.8 root@localhost.localdomain... Domain of sender address root@localhost.localdomain does not exist
You can give the host a fully qualified hostname in /etc/hosts or /etc/sysconfig/network and that should resolve the problem.
i.e. if the system is 192.168.1.10 then in /etc/hosts have...
192.168.1.10 system system.mydomain.com
Then 'service sendmail restart' and you should be good. There are other Sendmail workarounds but this is how we setup systems that aren't mail servers as such.
Will.
Quoting Tom Brown tom@ng23.net:
I need to set some of our boxes to send mail through our smarthost. In the sendmail.mc file i have set the smarthost and rebuilt the sendmail.cf file. When i send a mail locally on the box though i get this error
Diagnostic-Code: SMTP; 553 5.1.8 root@localhost.localdomain... Domain of sender address root@localhost.localdomain does not exist
What else do i need to edit as there is something that talks about sending from unresolvable domains but this is already allowed i think
FEATURE(`accept_unresolvable_domains')dnl
any ideas ?
The above 553 error was probably generated on your smarthost.
Make sure your host is not called "localhost.localdomain" (in /etc/sysconfig/network). Edit /etc/hosts and make sure your host name is not in the 127.0.0.1 line (put it into separate line with your host's IP address).
At 10:46 AM 11/13/2006, Aleksandar Milivojevic wrote:
Quoting Tom Brown tom@ng23.net:
I need to set some of our boxes to send mail through our smarthost. In the sendmail.mc file i have set the smarthost and rebuilt the sendmail.cf file. When i send a mail locally on the box though i get this error
Diagnostic-Code: SMTP; 553 5.1.8 root@localhost.localdomain... Domain of sender address root@localhost.localdomain does not exist
What else do i need to edit as there is something that talks about sending from unresolvable domains but this is already allowed i think
FEATURE(`accept_unresolvable_domains')dnl
any ideas ?
The above 553 error was probably generated on your smarthost.
Make sure your host is not called "localhost.localdomain" (in /etc/sysconfig/network). Edit /etc/hosts and make sure your host name is not in the 127.0.0.1 line (put it into separate line with your host's IP address).
Or even just remove your hostname from the 127.0.0.1 line and DON'T put it in anywhere else.
This business of the installer tossing the host name on the 127.0.0.1 line of /etc/hosts is silly, and results in a known step in every installation of a server that says "go edit /etc/hosts, remove host name". I'm sure it helps something, somewhere, but it makes a mess in server environments.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Quoting Daniel Senie dts@senie.com:
This business of the installer tossing the host name on the 127.0.0.1 line of /etc/hosts is silly, and results in a known step in every installation of a server that says "go edit /etc/hosts, remove host name". I'm sure it helps something, somewhere, but it makes a mess in server environments.
It helps workstations/laptops/whatever that don't have IP address at all (or at least not permanently). That way they can always resolve their own hostname to 127.0.0.1.
Of course, it would be nice if installer was doing the right thing if networking was configured with static IP address by generating "two line" /etc/hosts file (instead of one liner). Having your own static IP address in /etc/hosts file is a good thing in case DNS/NIS/LDAP/whatever name service becomes unavailable (due to networking glitch, or more permanent damange happens). That way at least local stuff will still work OK. Also, there might be stuff in init.d that depends on beign able to resolve local machine's name to an IP address before networking is available (usually such stuff should go after network script, but from time to time something slips). The only downside of having host's static IP address in /etc/hosts is if you are chaning the host's IP address. Easy to forget to update /etc/hosts. However, if you have a habit of placing it into every /etc/hosts, it just becomes second nature to update /etc/hosts when changing host's IP address. Esp. if you have Solaris hosts in the mix (where IP address to be assigned to an interface is read from /etc/hosts by default).
I guess Red Hat might be reluctant to fix this. By doing the "right thing" they'd probably get way more support calls from clueless newbees that installed RHEL on their laptops, than they are getting now from sysadmins that installed it on their server(s) (for example, sysadmin skipped morning coffe and as direct result of it haven't rechecked the obvious thing to check -- quite understandable).
The above 553 error was probably generated on your smarthost.
Make sure your host is not called "localhost.localdomain" (in /etc/sysconfig/network). Edit /etc/hosts and make sure your host name is not in the 127.0.0.1 line (put it into separate line with your host's IP address).
thanks all - indeed the hostname was in 127.0.0.1 etc - fixed that and all is well.