Re: Network identity for sending mail.

2008-03-16 Thread Giorgos Keramidas
On 2008-03-17 08:36, Malcolm Kay <[EMAIL PROTECTED]> wrote:
> On Mon, 17 Mar 2008 01:07 am, Erik Trulsson wrote:
> > 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.
>
> On Mon, 17 Mar 2008 05:59 am, Giorgos Keramidas wrote:
> > Set SMART_HOST in `/etc/mail/your-master-config.mc' :)
> >
> > Then run:
> >
> > # cd /etc/mail
> > # make && make install
> > # make restart
> >
>
> Thanks guys,
> I'd heard of SMART_HOST but did not realise this would overcome
> my identity problem.
>
> Your attention is much appreciated.

Hi Malcolm.

You are welcome, of course :)

If you stick around with Sendmail, it may be interesting to search
through the archives.  There are a few posts which may be interesting
for other setup details of your outgoing email, like email address
rewriting (commonly called `masquerading' in Sendmail documentation).

A few pointers to get you started are:

http://groups.google.com/group/mailing.freebsd.questions/msg/a6aafc66482070c1
http://groups.google.com/group/comp.unix.bsd.freebsd.misc/msg/83fdd8740321db86
http://groups.google.com/group/lucky.freebsd.questions/msg/7cf951f12567f2fe
http://groups.google.com/group/comp.unix.bsd.freebsd.misc/msg/562dc23fca32c37c
http://groups.google.com/group/list.freebsd.questions/msg/8dff805cd2bc76be

Then in the post at

http://groups.google.com/group/list.freebsd.questions/msg/c9fc1a5a75d9120a

you can find a bit of help about `mailertable', the Sendmail feature I
use to forward all my email to my default SMART_HOST and redirect
company-internal email to the internal mail server of my workplace.

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


Re: Network identity for sending mail.

2008-03-16 Thread Malcolm Kay
On Mon, 17 Mar 2008 05:59 am, Giorgos Keramidas wrote:
> On 2008-03-17 00:26, Malcolm Kay <[EMAIL PROTECTED]> 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?
> 
> Set SMART_HOST in `/etc/mail/your-master-config.mc' :)
> 
> Then run:
> 
>   # cd /etc/mail
>   # make && make install
>   # make restart
> 
> 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network identity for sending mail.

2008-03-16 Thread Malcolm Kay
On Mon, 17 Mar 2008 01:07 am, Erik Trulsson wrote:
> 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.
> 
On Mon, 17 Mar 2008 05:59 am, Giorgos Keramidas wrote:
> Set SMART_HOST in `/etc/mail/your-master-config.mc' :)
> 
> Then run:
> 
>   # cd /etc/mail
>   # make && make install
>   # make restart
> 

Thanks guys,
I'd heard of SMART_HOST but did not realise this would overcome
my identity problem.

Your attention is much appreciated.

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


Re: Network identity for sending mail.

2008-03-16 Thread Giorgos Keramidas
On 2008-03-17 00:26, Malcolm Kay <[EMAIL PROTECTED]> 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?

Set SMART_HOST in `/etc/mail/your-master-config.mc' :)

Then run:

# cd /etc/mail
# make && make install
# make restart

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


Re: Network identity for sending mail.

2008-03-16 Thread Mel
On Sunday 16 March 2008 08:47:47 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. 

No. It assumes that the variable MAIL_AGENT in the environment is capable of 
sending mail and if /unset/ uses sendmail.
Have a look at the mail/smail port and set MAIL_AGENT accordingly in 
environment. This can be done permanently for all users, by adding the 
variable to the setenv entry in the default listing in /etc/login.conf and 
running cap_mkdb /etc/login.conf afterwards.

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network identity for sending mail.

2008-03-16 Thread Erik Trulsson
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 -
> > > <[EMAIL PROTECTED]>
> > > (reason: 450 4.7.1 : 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

-- 

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


Re: Network identity for sending mail.

2008-03-16 Thread Malcolm Kay
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 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 -
> > <[EMAIL PROTECTED]>
> > (reason: 450 4.7.1 : 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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Network identity for sending mail.

2008-03-16 Thread Giorgos Keramidas
On 2008-03-16 18:17, Malcolm Kay <[EMAIL PROTECTED]> 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. 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 -
> <[EMAIL PROTECTED]>
> (reason: 450 4.7.1 : 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.

The domain "on.net" is a valid domain, registered already by:

: Internode Systems Pty Ltd
:PO Box 284
:Rundle Mall, South Australia 5000
:AU
:
:Domain Name: ON.NET

If you don't own the domain, then it's not surprising that the hostname
doesn't exist.

You still have a few options:

  (1) Use masquerading, to rewrite your outgoing email address to one
  that is valid.  My Sendmail installation rewrites `keramida' to
  [EMAIL PROTECTED]', which is a valid address.

  (2) Use your ISP's mail gateway.  It looks like you are trying to post
  *directly* to the mail servers of FreeBSD.org from an address
  which doesn't resolve correctly.  This is a common spammer trick,
  so you are blocked if you do that :/

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


Re: Network identity for sending mail.

2008-03-16 Thread Erik Trulsson
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?

> 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 -
> <[EMAIL PROTECTED]>
> (reason: 450 4.7.1 : 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.




-- 

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