Re: Sendmail smarthost

2008-01-13 Thread Chris Cohen
On Saturday 12 January 2008 17:18:32 Joshua Gimer wrote:
> Are you attempting to force local mail out to a "smart host"?
>
> If so you can make this change in your submit.cf; Change the following:
>
> D{MTAHost}[127.0.0.1]
> to
> D{MTAHost}[Address of  Smart Host]
>
Thank you, that does exactly what I wanted to do!

-- 
Greetings
Chris



Re: Sendmail smarthost

2008-01-12 Thread folays
Chris Cohen <[EMAIL PROTECTED]> writes:

> On Saturday 12 January 2008 16:21:29 Vijay Sankar wrote:
> > On January 12, 2008 07:51:24 am Chris Cohen wrote:
> > > Hi again,
> > >
> > > just wanted to configure 4.2's sendmail to use my smarthost to send
> > > status mails. I went to /usr/share/sendmail, edited cf/openbsd-localhost
> > > and cd/submit and created the cf files by typing m4 m4/cf.m4
> > > cf/openbsd-localhost.m4 > localhost.cf according
> > > to /usr/share/sendmail/README.
> > >
> > > Now I have this in my /etc/mail/localhost.cf and submit.cf:
> > > # "Smart" relay host (may be null)
> > > DSmysmarthost.example.com
> > >
> > > I also pkill -HUP'ed sendmail but mails just don't pass my smarthost,
> > > they are just delivered locally and I can't find anything special in my
> > > maillog.
> > >
> > > Is there anything else I have to do?
> >
> > Probably a silly question, but did you copy the localhost.cf to /etc/mail?
> >
> Yes, I did :)
> 
> What I forgot to mention: Mails for localhost and myhostname are delivered 
> locally, mails for other domains do pass my smarthost.

I configured my sendmail some times ago, but i believe that relaying to the
smarthost can be achieved by adding this to your /etc/mail/mailertable file:

.   relay:[hostname.of.your.smarthost.com]

Or

.   relay:[ip]

And maybe a make in /etc/mail/ if the file is hashed.

This is a tips that i've read in one of the openbsd mailling lists, so i bet
that checking the archives up to three month ago could give you some advice.

-- 
folays



Re: Sendmail smarthost

2008-01-12 Thread Joshua Gimer

Are you attempting to force local mail out to a "smart host"?

If so you can make this change in your submit.cf; Change the following:

D{MTAHost}[127.0.0.1]
to
D{MTAHost}[Address of  Smart Host]

Joshua Gimer

On Jan 12, 2008, at 8:37 AM, Chris Cohen wrote:


On Saturday 12 January 2008 16:21:29 Vijay Sankar wrote:

On January 12, 2008 07:51:24 am Chris Cohen wrote:

Hi again,

just wanted to configure 4.2's sendmail to use my smarthost to send
status mails. I went to /usr/share/sendmail, edited cf/openbsd- 
localhost

and cd/submit and created the cf files by typing m4 m4/cf.m4
cf/openbsd-localhost.m4 > localhost.cf according
to /usr/share/sendmail/README.

Now I have this in my /etc/mail/localhost.cf and submit.cf:
# "Smart" relay host (may be null)
DSmysmarthost.example.com

I also pkill -HUP'ed sendmail but mails just don't pass my  
smarthost,
they are just delivered locally and I can't find anything special  
in my

maillog.

Is there anything else I have to do?


Probably a silly question, but did you copy the localhost.cf to / 
etc/mail?



Yes, I did :)

What I forgot to mention: Mails for localhost and myhostname are  
delivered

locally, mails for other domains do pass my smarthost.

--
Greetings
Chris




Re: Sendmail smarthost [Solved]

2008-01-12 Thread Chris Cohen
Someone privately gave me the tip to just forward mails to the adress I want 
them to be delivered to by my smarthost. That does it for me.

-- 
Greetings
Chris



Re: Sendmail smarthost

2008-01-12 Thread Darrin Chandler
On Sat, Jan 12, 2008 at 04:37:46PM +0100, Chris Cohen wrote:
> On Saturday 12 January 2008 16:21:29 Vijay Sankar wrote:
> > On January 12, 2008 07:51:24 am Chris Cohen wrote:
> > > Hi again,
> > >
> > > just wanted to configure 4.2's sendmail to use my smarthost to send
> > > status mails. I went to /usr/share/sendmail, edited cf/openbsd-localhost
> > > and cd/submit and created the cf files by typing m4 m4/cf.m4
> > > cf/openbsd-localhost.m4 > localhost.cf according
> > > to /usr/share/sendmail/README.
> > >
> > > Now I have this in my /etc/mail/localhost.cf and submit.cf:
> > > # "Smart" relay host (may be null)
> > > DSmysmarthost.example.com
> > >
> > > I also pkill -HUP'ed sendmail but mails just don't pass my smarthost,
> > > they are just delivered locally and I can't find anything special in my
> > > maillog.
> > >
> > > Is there anything else I have to do?
> >
> > Probably a silly question, but did you copy the localhost.cf to /etc/mail?
> >
> Yes, I did :)
> 
> What I forgot to mention: Mails for localhost and myhostname are delivered 
> locally, mails for other domains do pass my smarthost.

Well, that's perfectly normal. If sendmail determines it should deliver
locally then it'll never do anything else. Not only is this normal, it's
correct.

If I have a box I don't want to have local mail on, I change
/etc/mail/aliases and/or /etc/mail/virtusertable to reflect that, like
"root: [EMAIL PROTECTED]" and "me: [EMAIL PROTECTED]" which is not local so it
uses SMARTHOST...

-- 
Darrin Chandler|  Phoenix BSD User Group  |  MetaBUG
[EMAIL PROTECTED]   |  http://phxbug.org/  |  http://metabug.org/
http://www.stilyagin.com/  |  Daemons in the Desert   |  Global BUG Federation



Re: Sendmail smarthost

2008-01-12 Thread Chris Cohen
On Saturday 12 January 2008 16:21:29 Vijay Sankar wrote:
> On January 12, 2008 07:51:24 am Chris Cohen wrote:
> > Hi again,
> >
> > just wanted to configure 4.2's sendmail to use my smarthost to send
> > status mails. I went to /usr/share/sendmail, edited cf/openbsd-localhost
> > and cd/submit and created the cf files by typing m4 m4/cf.m4
> > cf/openbsd-localhost.m4 > localhost.cf according
> > to /usr/share/sendmail/README.
> >
> > Now I have this in my /etc/mail/localhost.cf and submit.cf:
> > # "Smart" relay host (may be null)
> > DSmysmarthost.example.com
> >
> > I also pkill -HUP'ed sendmail but mails just don't pass my smarthost,
> > they are just delivered locally and I can't find anything special in my
> > maillog.
> >
> > Is there anything else I have to do?
>
> Probably a silly question, but did you copy the localhost.cf to /etc/mail?
>
Yes, I did :)

What I forgot to mention: Mails for localhost and myhostname are delivered 
locally, mails for other domains do pass my smarthost.

-- 
Greetings
Chris



Re: Sendmail smarthost

2008-01-12 Thread Vijay Sankar
On January 12, 2008 07:51:24 am Chris Cohen wrote:
> Hi again,
>
> just wanted to configure 4.2's sendmail to use my smarthost to send status
> mails. I went to /usr/share/sendmail, edited cf/openbsd-localhost and
> cd/submit and created the cf files by typing m4 m4/cf.m4
> cf/openbsd-localhost.m4 > localhost.cf according
> to /usr/share/sendmail/README.
>
> Now I have this in my /etc/mail/localhost.cf and submit.cf:
> # "Smart" relay host (may be null)
> DSmysmarthost.example.com
>
> I also pkill -HUP'ed sendmail but mails just don't pass my smarthost, they
> are just delivered locally and I can't find anything special in my maillog.
>
> Is there anything else I have to do?

Probably a silly question, but did you copy the localhost.cf to /etc/mail?

Also just in case it is helpful this is what I usually do

1) edit the relevant m4 file, say localhost.m4
2) 'make localhost.cf' within /usr/share/sendmail/cf
3) copy the file to the /etc/mail directory

 

-- 
Vijay Sankar, M.Eng., P.Eng.
President & CEO
ForeTell Technologies Limited
59 Flamingo Avenue, Winnipeg, MB Canada R3J 0X6
Phone: +1 204 885 9535, E-Mail: [EMAIL PROTECTED]



Sendmail smarthost

2008-01-12 Thread Chris Cohen
Hi again,

just wanted to configure 4.2's sendmail to use my smarthost to send status 
mails. I went to /usr/share/sendmail, edited cf/openbsd-localhost and 
cd/submit and created the cf files by typing m4 m4/cf.m4 
cf/openbsd-localhost.m4 > localhost.cf according 
to /usr/share/sendmail/README.

Now I have this in my /etc/mail/localhost.cf and submit.cf:
# "Smart" relay host (may be null)
DSmysmarthost.example.com

I also pkill -HUP'ed sendmail but mails just don't pass my smarthost, they are 
just delivered locally and I can't find anything special in my maillog.

Is there anything else I have to do?

-- 
Greetings
Chris



Re: sendmail: smarthost help

2007-12-26 Thread Darren Spruell
On Dec 24, 2007 2:18 PM, Martin Schrvder <[EMAIL PROTECTED]> wrote:
> Hi,
> this is probably a stupid error, but I'm stuck. :-(
>
> I'm trying to set up my sendmail to use a smarthost. If I now do
> -
> > sudo sendmail -bv [EMAIL PROTECTED]
> [EMAIL PROTECTED] deliverable: mailer relay, host
> gwyn.kn-bremen.de, user [EMAIL PROTECTED]
> -
> But sendmail still uses the mx for oneiros.de for mails to
> [EMAIL PROTECTED]:

If you have a mailertable entry (/etc/mail/mailertable) for
oneiros.de, that would override delivery via the smarthost in the way
you observe.

Other maps may have this effect as well.

DS



sendmail: smarthost help

2007-12-24 Thread Martin Schröder
Hi,
this is probably a stupid error, but I'm stuck. :-(

I'm trying to set up my sendmail to use a smarthost. If I now do
-
> sudo sendmail -bv [EMAIL PROTECTED]
[EMAIL PROTECTED] deliverable: mailer relay, host
gwyn.kn-bremen.de, user [EMAIL PROTECTED]
-
But sendmail still uses the mx for oneiros.de for mails to
[EMAIL PROTECTED]:
-
Dec 24 22:16:34 gryphon sendmail[30514]: lBOLGYxf030514: from=ms,
size=37, class=0, nrcpts=1,
msgid=<[EMAIL PROTECTED]>,
[EMAIL PROTECTED]
Dec 24 22:16:34 gryphon sM-mta[11881]: lBOLGYJL011881:
from=<[EMAIL PROTECTED]>, size=344, class=0, nrcpts=1,
msgid=<[EMAIL PROTECTED]>, proto=ESMTP,
daemon=MTA, [EMAIL PROTECTED] [127.0.0.1]
Dec 24 22:16:34 gryphon sendmail[30514]: lBOLGYxf030514:
[EMAIL PROTECTED], ctladdr=ms (1000/1000), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30037, relay=[127.0.0.1]
[127.0.0.1], dsn=2.0.0, stat=Sent (lBOLGYJL011881 Message accepted for
delivery)
Dec 24 22:16:42 gryphon sM-mta[1635]: lBOLGYJL011881:
to=<[EMAIL PROTECTED]>, ctladdr=<[EMAIL PROTECTED]> (1000/1000),
delay=00:00:08, xdelay=00:00:08, mailer=relay, pri=30344,
relay=mail.variomedia.de. [81.28.224.26], dsn=4.0.0, stat=Deferred:
451-Mails from 84.137.59.178 refused: Dynamic IP Addresses See:
-
What's wrong here?

Best
   Martin