Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

E-Mail through smtp?

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
-leliel-
Apprentice
Apprentice
Posts: 294
Joined: Sat May 03, 2003 6:51 pm
Location: Germany

E-Mail through smtp?

  • Quote

Post by -leliel- » Wed Oct 24, 2007 8:32 am

Hi guys,

I set up ssmtp a long while ago for my local server to send me e-mails with alerts and other stuff. Some programs do fine, for example I get an E-Mail from rkhunter every night. But it seems not to work for the whole system. Is there any better way instead of ssmtp?

This is my conf:

Code: Select all

blackbox patrick # 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=my@email.com
mailhub=customer-smtp.my-domain.net:2525
rewriteDomain=
FromLineOverride=YES
AuthUser=root@my-domain.net
AuthPass=something

Code: Select all

blackbox patrick # cat /etc/ssmtp/revaliases 
# sSMTP aliases
# 
# Format:       local_account:outgoing_address:mailhub
#
# Example: root:your_login@your.domain:mailhub.your.domain[:port]
# where [:port] is an optional port number that defaults to 25.
root:root@my-domain.net:customer-smtp.my-domain.net:2525
- carpe noctem -

dunkelelf@jabber.org
Top
papal_authority
Veteran
Veteran
User avatar
Posts: 1823
Joined: Wed Mar 31, 2004 4:07 am
Location: Canada

  • Quote

Post by papal_authority » Wed Oct 24, 2007 9:45 am

SSMTP is definitely the simplest, and probably the best solution for a box that merely offloads mail to another mail server. You can build something similar with sendmail or postfix, but generally it's not worth it IMHO. I use SSMTP on many boxes and my /etc/ssmtp/ssmtp.conf looks similar to yours, the only difference is that I explicitly set the rewriteDomain line which is usually required.

Code: Select all

root=youremail@yourmailserverdomain.net
mailhub=smtp.yourmailserverdomain.net
rewriteDomain=yourmailserverdomain.net
hostname=localhostname
FromLineOverride=YES
AuthUser=user@yourmailserverdomain.net
AuthPass=password
The free market gave me gonorrhea.
Top
Post Reply

2 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy