Network identity for sending mail.

Erik Trulsson ertr1013 at student.uu.se
Sun Mar 16 14:37:13 UTC 2008


On Mon, Mar 17, 2008 at 12:26:07AM +1030, Malcolm Kay wrote:
> On Sun, 16 Mar 2008 06:46 pm, Erik Trulsson wrote:
> > On Sun, Mar 16, 2008 at 06:17:47PM +1030, Malcolm Kay wrote:
> > > The send-pr appears to assume that mail can and will be sent
> > > directly through sendmail or equivalent rather than inderctly through
> > > an ISP mail service.
> > 
> > Does it not work if you configure sendmail to send via your ISP's mail
> > server?
> 
> Sounds good, but how?

I do not use sendmail myself, so I am not sure of all the details, but
go to /etc/mail/  and define SMART_HOST appropriately in the right .mc
file.
Read the Makefile there for information on how to rebuild things and which
files are used.

Googling for 'freebsd sendmail smart_host' should also provide useful
information.


> 
> > 
> > > I can certainly successfully send mail directly
> > > via sendmail but as I don't have a static IP address or a registered
> > > name the (bogus?) name used is not able to be validated. So when I send-pr
> > > I get a returned mail message which includes the following:
> > > 
> > >    ----- The following addresses had permanent fatal errors -----
> > > <FreeBSD-gnats-submit at freebsd.org>
> > >     (reason: 450 4.7.1 <mail.whatnot.on.net>: Helo command rejected: Host not found)
> > > 
> > > It seems most destinations are not so pedantic and accept the (bogus) name.  
> > > 
> > > Now if I set up sendmail with some registered name in place of mail.whatnot.on.net
> > > then I believe the message will be accepted.
> > 
> > Perhaps, but most likely whatever name you supply will have to resolve to
> > the same IP it was sent from for it to be accepted.
> > 
> > > 
> > > So the question is would it be legitimate or fraudulent to set sendmail to work with
> > > the name of my ISP's mail server in the Helo command -- after all this is the rout that 
> > > will be followed by any responses.
> > > 
> > > Is there a better way around the difficulty.
> > 
> > You could also use dynamic DNS (see e.g. www.dyndns.org) to get a real
> > hostname that sendmail (and other services) can use.
> 
> Yes; somewhat cumbersome although it also gains some other advantages.
> 
> Thank you,
> Malcolm

-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013 at student.uu.se


More information about the freebsd-questions mailing list