sendmail aliases not worked as expected

2004-01-11 Thread mgmcomm @hotmail.com
I am having trouble getting /etc/mail/aliases to properly forward system 
messages such as cron or periodic events.  Actually this problem affects 
even mail input using the mail command or any other method.  Although the 
cron/periodic is what I require the most.

When a cron or periodic task creates an email to say root...it gets mailed 
to [EMAIL PROTECTED] instead of [EMAIL PROTECTED]  Which results in an 
error message

Jan  7 03:03:01 butters sm-mta[1511]: i07331me001498: SYSERR(root): 
butters.kibserv.org. config error: mail loops back to me (MX problem?)

A bounce message is generated and sends cleanly to [EMAIL PROTECTED]  
The original message is removed from the queue...apparently this error is 
fatal to the original message.

my alias file contains the following
root:   [EMAIL PROTECTED]
seti:   [EMAIL PROTECTED]
kib:[EMAIL PROTECTED]
virtualuser:[EMAIL PROTECTED]
and many other entries...most are the defaults in the original file enabled 
and almost all eventually point to root anyhow.  And yes I have run 
newaliases and received successful and positive response.

10:17am butters:/etc/mail # newaliases
/etc/mail/aliases: 38 aliases, longest 22 bytes, 504 bytes total
This problem seemed to start about the time I upgrades from 4.7 to 5.2.  
Presently I am loosely tracking current...usually up to a month behind with 
a 1 week run on a test box.  I plan to track 5-stable as soon as I see it 
since I am too deep into 5.x features to go back to 4.x now.  Current is not 
really all I bargained for  :)

10:25am butters:/etc/mail # uname -a
FreeBSD butters 5.2-CURRENT FreeBSD 5.2-CURRENT #3: Tue Dec 16 19:32:35 UTC 
2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CUSTOM  i386

in my rc.conf file I thought maybe my sendmail options were wrong.  
historically I have used:
sendmail_enable=YES
but after reading the defaults and the rc.sendmail file I find that this 
option is exclusive of two other sendmail options
sendmail_submit_enable and sendmail_outbound_enable

So I tried each in turn with no change in result.  But since I can't find 
much documentation on these other than what I can make from the rc.sendmail 
I might still just be using the wrong rc.conf the wrong way.

It seems to me that sendmail is completely ignoring the /etc/mail/aliases 
file
Even when I try to send mail to kib (a real user) or the virtualuser the 
mail always tries to go to [EMAIL PROTECTED] eventually bounces 
and gets attached to a message to the postmaster.  I suppose the aliases are 
not completely ignored because no mail ever gets to the local user mail 
accounts.

Also note that the kibserv.org is an old domain no longer registered...but 
we still use it for testing purposes.  To prove this is not a dns related 
issue here is a few digs.  Our local dns server has all the correct records.

10:29am butters:/etc/mail # dig kibserv.org mx

;  DiG 8.3  kibserv.org mx
;; res options: init recurs defnam dnsrch
;; got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 64231
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; QUERY SECTION:
;;  kibserv.org, type = MX, class = IN
;; ANSWER SECTION:
kibserv.org.1H IN MX10 mail.kibserv.org.
;; AUTHORITY SECTION:
kibserv.org.1H IN NS10.0.0.5.
;; Total query time: 2 msec
;; FROM: butters to SERVER: 10.0.0.5
;; WHEN: Sun Jan 11 10:36:51 2004
;; MSG SIZE  sent: 29  rcvd: 72
10:36am butters:/etc/mail #  dig mail.kibserv.org

;  DiG 8.3  mail.kibserv.org
;; res options: init recurs defnam dnsrch
;; got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 63182
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 0
;; QUERY SECTION:
;;  mail.kibserv.org, type = A, class = IN
;; ANSWER SECTION:
mail.kibserv.org.   1H IN CNAME stan.kibserv.org.
stan.kibserv.org.   1H IN A 10.0.0.8
;; AUTHORITY SECTION:
kibserv.org.1H IN NS10.0.0.5.
;; Total query time: 3 msec
;; FROM: butters to SERVER: 10.0.0.5
;; WHEN: Sun Jan 11 10:37:15 2004
;; MSG SIZE  sent: 34  rcvd: 91
10:37am butters:/etc/mail #

Well I can't think of anything else that might apply here.  I hope I didn't 
go into too much detail making this unreadbale.  But I suppose too much is 
better than not enough.

As soon as I can get the mail server to accept these messages I will be 
allowed to roll our domains to this new mail server and I can finally get 
off
hotmail and have a real pop3 account for a change.

And please reply to or cc me as my hotmail account is not on the list 
anymore.  It fills up so fast that the mailing list gets bounded messages 
and drops me every couple days if I don't keep deleting mail.  Its become 
too much of a hassle.

Thanks
Jason Cribbins
_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


Re: sendmail aliases not worked as expected

2004-01-11 Thread Matthew Seaman
On Sun, Jan 11, 2004 at 03:50:03PM +, mgmcomm @hotmail.com wrote:

 When a cron or periodic task creates an email to say root...it gets mailed 
 to [EMAIL PROTECTED] instead of [EMAIL PROTECTED]  Which results in an 
 error message

That's by design, believe it or not.  'root' is a member of class E --
Exposed Users -- whoese e-mail addresses won't be rewritten by
genericstable processing or the like.
 
 Jan  7 03:03:01 butters sm-mta[1511]: i07331me001498: SYSERR(root): 
 butters.kibserv.org. config error: mail loops back to me (MX problem?)

On your mail host, you need to add the names of all of the hosts you
provide mail service for to the /etc/mail/local-host-names file, one
per line.

 ;; ANSWER SECTION:
 kibserv.org.  1H IN MX10 mail.kibserv.org.

 ;; ANSWER SECTION:
 mail.kibserv.org. 1H IN CNAME stan.kibserv.org.
 stan.kibserv.org. 1H IN A 10.0.0.8

Not relevant to your current problem, but you've got your MX pointed
to a CNAME.  That's bad karma and not permitted by the DNS standards.
You should make mail.kibserv.org into an A record like so:

mail.kibserv.org.   1H IN A 10.0.0.8
stan.kibserv.org.   1H IN A 10.0.0.8

and similarly, provide PTR records for both names:

$ORIGIN 0.0.10.in-addr.arpa.

8   1H  IN  PTR mail.kibserv.org.
PTR stan.kibserv.org.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: sendmail aliases not worked as expected

2004-01-11 Thread Micheal Patterson



- Original Message - 
From: mgmcomm @hotmail.com [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, January 11, 2004 9:50 AM
Subject: sendmail aliases not worked as expected


 I am having trouble getting /etc/mail/aliases to properly forward system
 messages such as cron or periodic events.  Actually this problem affects
 even mail input using the mail command or any other method.  Although the
 cron/periodic is what I require the most.

 When a cron or periodic task creates an email to say root...it gets mailed
 to [EMAIL PROTECTED] instead of [EMAIL PROTECTED]  Which results in an
 error message

 Jan  7 03:03:01 butters sm-mta[1511]: i07331me001498: SYSERR(root):
 butters.kibserv.org. config error: mail loops back to me (MX problem?)

 A bounce message is generated and sends cleanly to [EMAIL PROTECTED]
 The original message is removed from the queue...apparently this error is
 fatal to the original message.

 my alias file contains the following
 root:   [EMAIL PROTECTED]
 seti:   [EMAIL PROTECTED]
 kib:[EMAIL PROTECTED]
 virtualuser:[EMAIL PROTECTED]

 and many other entries...most are the defaults in the original file
enabled
 and almost all eventually point to root anyhow.  And yes I have run
 newaliases and received successful and positive response.

 10:17am butters:/etc/mail # newaliases
 /etc/mail/aliases: 38 aliases, longest 22 bytes, 504 bytes total

 This problem seemed to start about the time I upgrades from 4.7 to 5.2.
 Presently I am loosely tracking current...usually up to a month behind
with
 a 1 week run on a test box.  I plan to track 5-stable as soon as I see it
 since I am too deep into 5.x features to go back to 4.x now.  Current is
not
 really all I bargained for  :)

 10:25am butters:/etc/mail # uname -a
 FreeBSD butters 5.2-CURRENT FreeBSD 5.2-CURRENT #3: Tue Dec 16 19:32:35
UTC
 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CUSTOM  i386

 in my rc.conf file I thought maybe my sendmail options were wrong.
 historically I have used:
 sendmail_enable=YES
 but after reading the defaults and the rc.sendmail file I find that this
 option is exclusive of two other sendmail options
 sendmail_submit_enable and sendmail_outbound_enable

 So I tried each in turn with no change in result.  But since I can't find
 much documentation on these other than what I can make from the
rc.sendmail
 I might still just be using the wrong rc.conf the wrong way.

 It seems to me that sendmail is completely ignoring the /etc/mail/aliases
 file
 Even when I try to send mail to kib (a real user) or the virtualuser the
 mail always tries to go to [EMAIL PROTECTED] eventually bounces
 and gets attached to a message to the postmaster.  I suppose the aliases
are
 not completely ignored because no mail ever gets to the local user mail
 accounts.

 Also note that the kibserv.org is an old domain no longer registered...but
 we still use it for testing purposes.  To prove this is not a dns related
 issue here is a few digs.  Our local dns server has all the correct
records.

 10:29am butters:/etc/mail # dig kibserv.org mx



If the system is sending mail to itself for processing, as most mx's do, you
need to have the full host name in the local-host-names file. Otherwise, it
doesn't know it's the controlling mx and will reject the mail.

--

Micheal Patterson
Network Administration
TSG Incorporated
405-917-0600

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


Re: sendmail aliases not worked as expected

2004-01-11 Thread mgmcomm @hotmail.com



From: Micheal Patterson [EMAIL PROTECTED]
To: mgmcomm @hotmail.com [EMAIL PROTECTED],[EMAIL PROTECTED]
Subject: Re: sendmail aliases not worked as expected
Date: Sun, 11 Jan 2004 12:06:48 -0600


- Original Message -
From: mgmcomm @hotmail.com [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, January 11, 2004 9:50 AM
Subject: sendmail aliases not worked as expected
 I am having trouble getting /etc/mail/aliases to properly forward system
 messages such as cron or periodic events.  Actually this problem affects
 even mail input using the mail command or any other method.  Although 
the
 cron/periodic is what I require the most.

 When a cron or periodic task creates an email to say root...it gets 
mailed
 to [EMAIL PROTECTED] instead of [EMAIL PROTECTED]  Which results in an
 error message

 Jan  7 03:03:01 butters sm-mta[1511]: i07331me001498: SYSERR(root):
 butters.kibserv.org. config error: mail loops back to me (MX problem?)

 A bounce message is generated and sends cleanly to 
[EMAIL PROTECTED]
 The original message is removed from the queue...apparently this error 
is
 fatal to the original message.

 my alias file contains the following
 root:   [EMAIL PROTECTED]
 seti:   [EMAIL PROTECTED]
 kib:[EMAIL PROTECTED]
 virtualuser:[EMAIL PROTECTED]

 and many other entries...most are the defaults in the original file
enabled
 and almost all eventually point to root anyhow.  And yes I have run
 newaliases and received successful and positive response.

 10:17am butters:/etc/mail # newaliases
 /etc/mail/aliases: 38 aliases, longest 22 bytes, 504 bytes total

 This problem seemed to start about the time I upgrades from 4.7 to 5.2.
 Presently I am loosely tracking current...usually up to a month behind
with
 a 1 week run on a test box.  I plan to track 5-stable as soon as I see 
it
 since I am too deep into 5.x features to go back to 4.x now.  Current is
not
 really all I bargained for  :)

 10:25am butters:/etc/mail # uname -a
 FreeBSD butters 5.2-CURRENT FreeBSD 5.2-CURRENT #3: Tue Dec 16 19:32:35
UTC
 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CUSTOM  i386

 in my rc.conf file I thought maybe my sendmail options were wrong.
 historically I have used:
 sendmail_enable=YES
 but after reading the defaults and the rc.sendmail file I find that this
 option is exclusive of two other sendmail options
 sendmail_submit_enable and sendmail_outbound_enable

 So I tried each in turn with no change in result.  But since I can't 
find
 much documentation on these other than what I can make from the
rc.sendmail
 I might still just be using the wrong rc.conf the wrong way.

 It seems to me that sendmail is completely ignoring the 
/etc/mail/aliases
 file
 Even when I try to send mail to kib (a real user) or the virtualuser the
 mail always tries to go to [EMAIL PROTECTED] eventually 
bounces
 and gets attached to a message to the postmaster.  I suppose the aliases
are
 not completely ignored because no mail ever gets to the local user mail
 accounts.

 Also note that the kibserv.org is an old domain no longer 
registered...but
 we still use it for testing purposes.  To prove this is not a dns 
related
 issue here is a few digs.  Our local dns server has all the correct
records.

 10:29am butters:/etc/mail # dig kibserv.org mx


If the system is sending mail to itself for processing, as most mx's do, 
you
need to have the full host name in the local-host-names file. Otherwise, it
doesn't know it's the controlling mx and will reject the mail.

--

Actually the only one doing the job properly is the mail host itself which 
is using qmail/vpopmail.  All local root messages get translated 
properly...sent to local ip address as per the mx record and then available 
for picking up via pop3/webmail.

I am half tempted to drop sendmail on all hosts and see if qmail will 
forward to the mail host properly.  From what I can tell no mail for root or 
any other local user ever leave that localhostbut the bounce mesages to 
the postmaster seem to work just fine.

Only the mail host shoud accept incoming mail.  mail on each individual host 
is not checked and needs to  all go to one pop3 account on the mail host.

Thanks
Jason Cribbins
_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail

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


Re: sendmail aliases not worked as expected

2004-01-11 Thread mgmcomm @hotmail.com
On Sun, Jan 11, 2004 at 03:50:03PM +, mgmcomm @hotmail.com wrote:

 When a cron or periodic task creates an email to say root...it gets 
mailed
 to [EMAIL PROTECTED] instead of [EMAIL PROTECTED]  Which results in an
 error message

That's by design, believe it or not.  'root' is a member of class E --
Exposed Users -- whose e-mail addresses won't be rewritten by
genericstable processing or the like.
Well I used to be able to do this.  Is this a 5.x design?
How might I be able to get it to work the way it used to?
This behavior doesn't seem limited to root.  but to kib and virtualuser as 
well.  I can only assume hat it applies to any alias or real user.

 Jan  7 03:03:01 butters sm-mta[1511]: i07331me001498: SYSERR(root):
 butters.kibserv.org. config error: mail loops back to me (MX problem?)
On your mail host, you need to add the names of all of the hosts you
provide mail service for to the /etc/mail/local-host-names file, one
per line.
My mail host is qmail/vpopmail.  Actually its Matt Simerson's mail toaster 
at http://matt.simerson.net.  My local-host-names is actually a mysql table 
and considering the number of machines involved this is going to be a 
difficult task to maintain unless I can find a way to use some sort of 
globing (*.domain.com or such).  Although this problem is for the toaster 
mailing list to assist me on if it comes down to that.

This mail host is set to accept all mail for kibserv.org and example.com.  
Both are test domains.  It seems to receive mail just fine when it gets 
[EMAIL PROTECTED] but not say [EMAIL PROTECTED]  Actually I 
don't even think [EMAIL PROTECTED] ever gets to the mail host...if I dig 
for mx records on host.domain.com it comes up with no answer and the default 
for sendmail it to send mail directly (basically to localhost) when no mx is 
found.  So I suppose a work around would be to add an mx record for every 
host but that doesn't seem like a clean solution to the problem.


 ;; ANSWER SECTION:
 kibserv.org.   1H IN MX10 mail.kibserv.org.
 ;; ANSWER SECTION:
 mail.kibserv.org.  1H IN CNAME stan.kibserv.org.
 stan.kibserv.org.  1H IN A 10.0.0.8
Not relevant to your current problem, but you've got your MX pointed
to a CNAME.  That's bad karma and not permitted by the DNS standards.
You should make mail.kibserv.org into an A record like so:
mail.kibserv.org.   1H IN A 10.0.0.8
stan.kibserv.org.   1H IN A 10.0.0.8
and similarly, provide PTR records for both names:

$ORIGIN 0.0.10.in-addr.arpa.

8   1H  IN  PTR mail.kibserv.org.
PTR stan.kibserv.org.
Good point.  I will reconfigure as you suggest.  The cname mail.kibserv.org 
is mainly useful for getting web mail users to the proper place.

Thanks
Jason Cribbins
_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus

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