Closed GoogleCodeExporter closed 9 years ago
In the log:
Feb 13 12:52:50 localhost sSMTP[2238]: Unable to locate mail
Feb 13 12:52:50 localhost sSMTP[2238]: Cannot open mail:25
Feb 13 12:56:21 localhost sSMTP[2312]: 501 <root@>: domain missing or malformed
Script cuts the ".tel.ru"
Original comment by bogdan...@gmail.com
on 13 Feb 2014 at 2:42
The first 2 lines in log file must have been when you attempted to send a test
email message before configuration, or when the system booted and attempted to
send a start-up email.
The third line... it looks like you didn't configure your host/domain name? Try
setting your host name and domain name in the network settings. I believe sSMTP
will only send FQDN? Its something we should be able to fix if users don't set
this (they leave it as 'localhost'). Please confirm that fixes your problem.
--Marc
Original comment by msmith...@gmail.com
on 13 Feb 2014 at 3:25
Changed hostname to storage.tel.ru and system domain name to tel.ru:
System host name: storage.tel.ru
System domain name: tel.ru
Same error on test email(tryed changing user/name, host). Seems hostname/domain
needs to be filled before mail setup? Can't check this because system already
running.
Original comment by bogdan...@gmail.com
on 13 Feb 2014 at 3:31
Ah, I remember this one now (I think) this is a behavior of sSMTP and some SMTP
setups -- they are mad that no domain is sent over (the 501 you see in the
logs).
There is an extra configuration step for sSMTP; edit /etc/ssmtp/revaliases like
this:
root:root@storage.tel.ru:mail.tel.ru
(You may need add a port above, see the comments in that file.)
--Marc
Original comment by msmith...@gmail.com
on 13 Feb 2014 at 3:38
yes, works that way.
also changed root@storage.tel.ru to my email address. seems mailer not using
esos_tui config form at all.
Original comment by bogdan...@gmail.com
on 13 Feb 2014 at 3:47
Huh? You still use the TUI to configure your sSMTP file
(/etc/ssmtp/ssmtp.conf). You manually set reverse aliases with
/etc/ssmtp/revaliases to map a from address.
I think we might be able to get around this... I had always assumed
"_HOSTNAME_" did something special (like insert the current FQDN of the
machine) in sSMTP but I quickly looked and it doesn't appear so.
Can manually edit /etc/ssmtp/ssmtp.conf and change "_HOSTNAME_" to your
machine's FQDN and then remove (or comment out) the line in
/etc/ssmtp/revaliases. Then try sending a test message and see if it works? I
suspect it will, and if so, I'll make the change.
--Marc
Original comment by msmith...@gmail.com
on 13 Feb 2014 at 5:43
Same error:
Feb 14 09:43:24 localhost sSMTP[22990]: 501 <root@>: domain missing or malformed
/etc/ssmtp/revaliases is empty.
[root@localhost log]# cat /etc/ssmtp/ssmtp.conf
# sSMTP configuration file
# This file is generated by esos_tui; do not edit
root=*HIDDEN*@tel.ru
mailhub=mail.tel.ru:25
rewritedomain=
hostname=storage.tel.ru
authuser=*HIDDEN*@globalnet.ru
Seems to be revaliases needs to be filled.
Original comment by bogdan...@gmail.com
on 14 Feb 2014 at 7:07
Okay, one more test: Try commenting out the 'rewritedomain=' line above (keep
the rest the same).
--Marc
Original comment by msmith...@gmail.com
on 14 Feb 2014 at 1:42
Yes, working that way.
Original comment by bogdan...@gmail.com
on 14 Feb 2014 at 2:21
Okay, I removed the 'rewritedomain' line from the default ssmtp.conf file and
changed the TUI mail settings dialog so it writes the current system host name
to the 'hostname' key. This should eliminate needing to use revaliases for a
basic setup.
This was committed as r573 and is available in the downloads section.
--Marc
Original comment by msmith...@gmail.com
on 16 Feb 2014 at 10:59
Original issue reported on code.google.com by
bogdan...@gmail.com
on 13 Feb 2014 at 1:53