Re: Sendmail local LAN delivery

2008-07-27 Thread Bruno Joho
Hi Derek

thanks for the reply.
My intention was to deliver the mails between the workstations on the
LAN directly. Every Workstation
on the LAN would have an appropriate cf file which forwards mails with
a destination on the WAN - to the
WAN-Smarthost, any mail going to a destination from inside the LAN
would be delivered
directly to the destination host without involving a (LAN) smarthost.
Is that possible somehow?

Thanks for your help

Bruno
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: {Spam?} Re: Sendmail local LAN delivery

2008-07-27 Thread Derek Ragona

At 03:49 PM 7/27/2008, Bruno Joho wrote:

Hi Derek

thanks for the reply.
My intention was to deliver the mails between the workstations on the
LAN directly. Every Workstation
on the LAN would have an appropriate cf file which forwards mails with
a destination on the WAN - to the
WAN-Smarthost, any mail going to a destination from inside the LAN
would be delivered
directly to the destination host without involving a (LAN) smarthost.
Is that possible somehow?

Thanks for your help

Bruno


That scenario is possible, but you may still need DNS MX records to point 
to the smart host as well.  You can have multiple MX records for a domain 
(or subdomain) where the value field is higher for a farther away mail 
server, or for a secondary mail server.  Sendmail uses DNS to figure 
routing along with the internal configuration file UNLESS you specify to 
sendmail to NOT use DNS.


So you have some choices in how you configure sendmail and/or DNS.

Also it may help you to test things on one system and bump up the sendmail 
logging so the /var/log/maillog file has more information.  Use the option:

-O LogLevel=80
Or some other value than 80.  You can add these options to your sendmail 
flags in /etc/rc.conf


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sendmail local LAN delivery

2008-07-24 Thread Derek Ragona

At 06:30 AM 7/24/2008, Bruno Joho wrote:

Hi folks

we have a inside the Lab (Class B Net, eg: bnet.ourdomain.com) several
workstations (eg: host1.intra015.bnet.ourdomain.com) in different
Class C Net (eg.intra015.bnet.ourdomain.com). There is a Mail Hub
outside the Class B Net which communicates with the Internet and
delivers
the mails sent by the workstations. All workstations have a
Smarthost entry in the cf file. Incoming mails are collected by the
mailhub, which
provides IMAP and POP access for all workstations. No mail coming from
the Internet will be delivered directly to the workstations.
Everything
works fine, exept one (small) problem. How can I configure the
sendmal.cf from the local workstations to send the mail addressed to a
neighbour
workstation (eg. from host1.intra015.bnet.ourdomain.com to
host2.intra016.bnet.ourdomain.com) directly. Sending it to the mailhub
and then sending
it back to the Intranet is no option due to firewall restrictions.

I apreciate any help, thanks

Bruno



Bruno,

If I understand your question correctly, you will need to smarthosts, one 
on the LAN side, and one on the WAN/internet side.  You will have to setup 
the LAN smarthost to forward mail to the WAN smarthost that it cannot 
deliver.  You will have to enable the LAN smarthost and WAN smarthost to be 
able to pass mail through your firewall.  Sendmail uses DNS for most host 
resolution, so you will need to setup MX records for the various LAN hosts 
to go to the LAN smarthost.


Hope this helps.

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]