Need ready-to-go sendmail configuration

tgagne
Posts: 11
Joined: Wed Mar 24, 2010 7:04 pm

Need ready-to-go sendmail configuration

Postby tgagne » Sat Mar 27, 2010 9:39 pm

I really hate Sendmail.

I have a fairly simple home network. I have a firewall, my HDA is behind it. I have four other computers on my .home.lan. I would like to have sendmail use my ISP's host for sending mail so that I can get phplist to work, as well as other HDA apps that need to send mail.

I'm close to getting it right. I can send mail from inside the HDA box, but when I try to use it to route mail from other computers on the network I get rejections 'cause it's passing along the PTR from inside the net. As a result, none of the mail is delivered because the lookups for 192.168.1.x fail.

Does anyone know which feature is missing so that all mail sent by sendmail will be stripped of its origin or have its origin replaced?

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Need ready-to-go sendmail configuration

Postby cpg » Sun Mar 28, 2010 3:16 am

join the club. sendmail hurts.

i would strongly advice for you to consider using postfix.

here is all needed for a basic configuration for a relay of comcast (basic) for a domain called "foobar.org", machine "hda.foobar.org". you add this at the end of /etc/postfix/main.cf:

Code: Select all

myhostname = hda.foobar.org relayhost = smtp.comcast.net masquerade_domains = foobar.org masquerade_classes = envelope_sender, header_sender
i think comcast got pissy at one point (at least with me) and it required using sasl auth. here is what's needed:

Code: Select all

myhostname = milan.foobar.org relayhost = smtp.comcast.net:587 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd broken_sasl_auth_clients = yes masquerade_domains = foobar.org masquerade_classes = envelope_sender, header_sender
in the mean time, i would look in /var/mail for lost email, though you probably knew that.

seriously, forget sendmail.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

Who is online

Users browsing this forum: No registered users and 34 guests