Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] ssmtp not sending mail correctly, sendmail is
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
planet-admin
Apprentice
Apprentice


Joined: 27 Mar 2004
Posts: 213
Location: Boise, ID

PostPosted: Fri Feb 16, 2007 12:35 am    Post subject: [solved] ssmtp not sending mail correctly, sendmail is Reply with quote

I have a vbulletin server running on a gentoo server, and I had ssmtp installed (the webserver is lighttpd). Anytime an email originating from that forum was received it would be received as:
(I have removed the actual domain name in the email address for security)

"added by portage for lighttpd" lighttpd@forum.domain.tld"

If I removed ssmtp and emerged sendmail, all mail was correctly received as:

"Forum Admin ceo@forum.domain.tld"

Which reflects the correct vbulletin settings.

I made sure the sendmail_path was set for php.ini, this had no effect, I also made sure the symlink for /usr/sbin/sendmail was correct, to the ssmtp binary. No steps I took resolved this issue.

ssmtp.conf
Code:

#
# /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=foo@bar.com

# 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=mail

# 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=

# The full hostname

# Gentoo bug #47562
# Commenting the following line will force ssmtp to figure
# out the hostname itself.

# 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


Anybody know why this is?

Thanks,
Michael
_________________
Michael S. Moody
Sr. Systems Engineer
Global Systems Consulting
Web: http://www.GlobalSystemsConsulting.com


Last edited by planet-admin on Tue Nov 27, 2007 6:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
flybynite
l33t
l33t


Joined: 06 Dec 2002
Posts: 620

PostPosted: Fri Feb 16, 2007 4:34 am    Post subject: Reply with quote

The "added by portage for lighttpd" comes from the /etc/passwd entry for the lighttpd user. Maybe the fullname entry but I'm not sure which field. You could just look for the offending entry in /etc/passwd to change it.

Changing it with ssmtp should be doable. I can't say which ssmtp option for sure, but try to change

/etc/ssmtp/revaliases
Quote:

# sSMTP aliases
#
# Format: local_account:outgoing_address:mailhub


or

/etc/ssmtp.conf
Quote:

# 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


Check this howto post for some more ssmtp info.
https://forums.gentoo.org/viewtopic-t-420358-highlight-ssmtp+howto.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum