Re: Sendmail on a LAN



On 08/16/2010 12:24 PM, Gregory Woodbury wrote:


On Mon, Aug 16, 2010 at 1:46 PM, JD <jd1008@xxxxxxxxx
<mailto:jd1008@xxxxxxxxx>> wrote:

I read the wiki for setting up and configuring sendmail
http://www.wikihow.com/Configure-Sendmail

Clearly, a full setup of DNS server for your domain
must be set up, per this wiki, along with mx records ...etc.

Does this prevent one from settiing up and using sendmail
on a LAN to send and receive email to/from the outside world?


In a word, no.

Get a dyndns.com <http://dyndns.com> name for your router public ip
address and set up at
dyndns to get mail delivered to that name. Set your router to forward
incoming SMTP
to the appropriate machine and go from there.

The main router is set up to forward all necessary ports
(smtp, pop, pop3, ....etc) to the machine which would run
sendmail. The firewall on the machine is set up to allow
packets to/from these ports.

I understand that some things need to be set up so that sendmail
sends headers that use a routable IP address as the source of
the message. Is it possible to make sendmail use my router's
public IP address in the message headers? How?


Sendmail doesn't use IPs *per se* but using the name you get is necessary.
For example (some names changed to protect the guilty):

my machine "masquerades" as wolves.durham.nc.us
<http://wolves.durham.nc.us> with the MX for that domain
pointing to my router's name via dyndns.com <http://dyndns.com>. The
router port forwards 25 to the
appropriate machine and the conversations carry on as usual.

Outgoing, I have sendmail using gmail as my smart host, with appropriate
authconfig settings for my gmail account.

The key is to "MASQUERADE AS" in the sendmail.mc <http://sendmail.mc>
file.
MASQUERADE_AS(`wolves.example.net <http://wolves.example.net>')dnl
FEATURE(masquerade_envelope)dnl
This tells sendmail to use the name you want.

Hope this Helps
--
G.Wolfe Woodbury

Thank you Gregory.
I will try it.

Cheers,

JD
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines



Relevant Pages

  • Re: Question about sendmail...
    ... > the router at my mail server (or rather, ... > I also have several mail clients on my 192.168.1.x network. ... sender addresses use the masquerading features of Sendmail. ... cf/README coming with your Sendmail on Fedora. ...
    (Fedora)
  • Re: Question about sendmail...
    ... >>the router at my mail server (or rather, ... >>I also have several mail clients on my 192.168.1.x network. ... >On the other hand you may go this route: do not run local Sendmail ... >from inner clients to the central mail hub. ...
    (Fedora)
  • Re: Sendmail on a LAN
    ... Does this prevent one from settiing up and using sendmail ... Get a dyndns.com name for your router public ip address and set up at ... my machine "masquerades" as wolves.durham.nc.us with the MX for that domain ... authconfig settings for my gmail account. ...
    (Fedora)
  • Re: some weird stuff found
    ... > Probably a Linux or Solaris rpc attack/exploit. ... > FreeBSD machines. ... Look for those ports you are unsure about, and see which open files are linked ... I would advise against running sendmail period. ...
    (FreeBSD-Security)
  • Re: Upgrade sendmail on 5.4-RELEASE-p7
    ... The base system uses sendmail 8.13.6, ... saying if the upgraded sendmail version from the ports is installed ... I just built the newest sendmail this AM, using portupgrade, as I ... if you have not installed sendmail from ports, ...
    (comp.unix.bsd.freebsd.misc)