* [gentoo-user] A little OT; ssmtp: Is this correct?
@ 2009-07-17 14:26 Michael Sullivan
2009-07-17 18:33 ` Michael Higgins
0 siblings, 1 reply; 2+ messages in thread
From: Michael Sullivan @ 2009-07-17 14:26 UTC (permalink / raw
To: gentoo-user
On my PC (camille.espersunited.com) I have ssmtp installed. It's
supposed to send all mail from camille to the exim server on
baby.espersunited.com. My ssmpt.conf file looks like this:
camille log # cat /etc/ssmtp/ssmtp.conf
#
# /etc/ssmtp.conf -- a config file for sSMTP sendmail.
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=postmaster
# The place where the mail goes. The actual machine name is required
# no MX records are consulted. Commonly mailhosts are named
mail.domain.com
# The example will fit if you are in domain.com and your mailhub is so
named.
mailhub=baby.espersunited.com
# Example for SMTP port number 2525
# mailhub=mail.your.domain:2525
# Example for SMTP port number 25 (Standard/RFC)
# mailhub=mail.your.domain
# Example for SSL encrypted connection
# mailhub=mail.your.domain:465
# Where will the mail seem to come from?
rewriteDomain=root@camille.espersunited.com
# The full hostname
# Gentoo bug #47562
# Commenting the following line will force ssmtp to figure
# out the hostname itself.
# hostname=_HOSTNAME_
# Set this to never rewrite the "From:" line (unless not given) and to
# use that address in the "from line" of the envelope.
#FromLineOverride=YES
# Use SSL/TLS to send secure messages to server.
#UseTLS=YES
# Use SSL/TLS certificate to authenticate against smtp host.
#UseTLSCert=YES
# Use this RSA certificate.
#TLSCert=/etc/ssl/certs/ssmtp.pem
# Get enhanced (*really* enhanced) debugging information in the logs
# If you want to have debugging of the config file parsing, move this
option
# to the top of the config file and uncomment
#Debug=YES
This has worked fine for about a week until yesterday when I rebooted.
Now I'm seeing these in my log file:
Jul 17 00:00:46 camille sSMTP[18912]: Set
RewriteDomain="root@camille.espersunited.com" is invalid
Jul 17 00:00:46 camille sSMTP[18912]: Set
RewriteDomain="camille.espersunited.com" used
Jul 17 00:05:16 camille sSMTP[18939]: Set
RewriteDomain="root@camille.espersunited.com" is invalid
Jul 17 00:05:16 camille sSMTP[18939]: Set
RewriteDomain="camille.espersunited.com" used
Jul 17 00:33:26 camille sSMTP[20274]: Set
RewriteDomain="root@camille.espersunited.com" is invalid
Jul 17 00:33:26 camille sSMTP[20274]: Set
RewriteDomain="camille.espersunited.com" used
Jul 17 00:50:02 camille sSMTP[20338]: Set
RewriteDomain="root@camille.espersunited.com" is invalid
Jul 17 00:50:02 camille sSMTP[20338]: Set
RewriteDomain="camille.espersunited.com" used
Jul 17 00:50:06 camille sSMTP[20340]: Set
RewriteDomain="root@camille.espersunited.com" is invalid
Jul 17 00:50:06 camille sSMTP[20340]: Set
RewriteDomain="camille.espersunited.com" used
Jul 17 02:59:01 camille sSMTP[20775]: Set
RewriteDomain="root@camille.espersunited.com" is invalid
Jul 17 02:59:01 camille sSMTP[20775]: Set
RewriteDomain="camille.espersunited.com" used
Jul 17 02:59:06 camille sSMTP[20776]: Set
RewriteDomain="root@camille.espersunited.com" is invalid
Jul 17 02:59:06 camille sSMTP[20776]: Set
RewriteDomain="camille.espersunited.com" used
Jul 17 03:00:03 camille sSMTP[20800]: Set
RewriteDomain="root@camille.espersunited.com" is invalid
Jul 17 03:00:03 camille sSMTP[20800]: Set
RewriteDomain="camille.espersunited.com" used
Jul 17 03:00:06 camille sSMTP[20829]: Set
RewriteDomain="root@camille.espersunited.com" is invalid
Jul 17 03:00:06 camille sSMTP[20829]: Set
RewriteDomain="camille.espersunited.com" used
But the mail that camille tries to send ends up in dead.letter. What's
going on here?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-user] A little OT; ssmtp: Is this correct?
2009-07-17 14:26 [gentoo-user] A little OT; ssmtp: Is this correct? Michael Sullivan
@ 2009-07-17 18:33 ` Michael Higgins
0 siblings, 0 replies; 2+ messages in thread
From: Michael Higgins @ 2009-07-17 18:33 UTC (permalink / raw
To: gentoo-user
On Fri, 17 Jul 2009 09:26:24 -0500
Michael Sullivan <msulli1355@gmail.com> wrote:
> mailhub=baby.espersunited.com
> # Where will the mail seem to come from?
> rewriteDomain=root@camille.espersunited.com
>
> # The full hostname
>
> # Gentoo bug #47562
> # Commenting the following line will force ssmtp to figure
> # out the hostname itself.
>
> # hostname=_HOSTNAME_
>
>
> This has worked fine for about a week until yesterday when I rebooted.
Is your hostname properly configured on the machine you rebooted?
> Now I'm seeing these in my log file:
>
> Jul 17 00:00:46 camille sSMTP[18912]: Set
> RewriteDomain="root@camille.espersunited.com" is invalid
http://www.lmgtfy.com/?q=ssmtp+RewriteDomain+%22is+invalid%22
First hit:
Comment by Alessandro Doro (adoroo) - Monday, 21 July 2008, 15:41 GMT-4
Dawid, your configuration is wrong.
rewriteDomain should only contain the domain name, without the username part.
Which makes some sense, given the name of the config option.
> But the mail that camille tries to send ends up in dead.letter.
> What's going on here?
If it ends up in dead.letter, it seems it's probably *your own* mail server rejecting it..?? Maybe have a look at "the exim server on baby.espersunited.com" to see why?
Anyway, you probably figured this out already.
Cheers,
--
|\ /| | | ~ ~
| \/ | |---| `|` ?
| |ichael | |iggins \^ /
michael.higgins[at]evolone[dot]org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-17 18:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-17 14:26 [gentoo-user] A little OT; ssmtp: Is this correct? Michael Sullivan
2009-07-17 18:33 ` Michael Higgins
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox