Page 1 of 1

mailx not sending mail

Posted: 9. Dec 2011, 03:21
by Atip
Salix XFCE4-13.37

I can't get mailx to work since apparently it is looking for a darkstar
server address instead of mine.

Code: Select all

cat /var/log/maillog
Dec  9 10:45:16 hailmx sm-mta[6205]: pB92jG6C006205: ruleset=check_mail,
arg1=<hailmx@darkstar>, relay=localhost [127.0.0.1], reject=553 5.1.8
<hailmx@darkstar>... Domain of sender address hailmx@darkstar does not exist
Where does it get that darkstar from and how can I change it?

/etc/HOSTNAME reads: "hailmx.smartbro.net" so does /etc/hosts

Further to mention before XFCE4 comes up it gives an error message
"could not look-up internet address for darkstar ......"

I have no such problem in my working box Fluxbox-13.37, mailx with sendmail are working
and mail is being send.

Re: mailx not sending mail

Posted: 9. Dec 2011, 08:33
by thenktor
What's the output of hostname -f?

Re: mailx not sending mail

Posted: 9. Dec 2011, 11:07
by laprjns
Atip wrote:Salix XFCE4-13.37
Where does it get that darkstar from and how can I change it?.
Salix Menu > System > Hostname

Image

Re: mailx not sending mail

Posted: 10. Dec 2011, 06:49
by Atip
$ hostname
darkstar
$ hostname -f
hostname: Unknown host

Salix Menu > System > Hostname the seeting there is correct.

Now if I change the hostname to correct entries the mail gets still stuck.

Code: Select all

tail /var/log/maillog
 Dec 10 14:25:59 hailmx sendmail[2530]: pBA6Pv7j002530: to=mainit@operamail.com, ctladdr=mailmx (1000/100), delay=00:00:02, xdelay=00:00:01, mailer=relay, pri=30257, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (pBA6PwBT002531 Message accepted for delivery)
Dec 10 14:26:21 hailmx sendmail[2538]: gethostbyaddr(192.168.x.xxx) failed: 1
Dec 10 14:36:10 hailmx sendmail[2919]: gethostbyaddr(192.168.x.xxx) failed: 1
Now the maillog says it is sent, however, it does not get delivered. Makes sense ???

The change of the hostname is also not permanent. When rebooting it is back to darkstar.