Re: /etc/aliases forwarding to wrong user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The plot thickens. I updated the .forward file to be readable and writeable by the user only. If I send a message now (after removing the alias I created earlier and running newaliases), it still gets bounced to the local user. Here is the (disguised) log entry that seems relevant:

Jun 20 10:31:30 myserver sendmail[10126]: AUTH=server, relay=myrelayserver.dom [xxx.xxx.xxx.xxx] (may be forged), authid=user1, mech=PLAIN, bits=0
Jun 20 10:31:40 myserver sendmail[10126]: h5KEVQi4010126: from=<user1@xxxxxxxxxxxxxxxxx>, size=365, class=0, nrcpts=1, msgid=<5585F8CE-A32B-11D7-845D-0003930123B2@xxxxxxxxxxxxxxxxx>, proto=ESMTP, daemon=MTA, relay= myrelayserver.dom [xxx.xxx.xxx.xxx] (may be forged)
Jun 20 10:31:40 myserver sendmail[10128]: h5KEVQi4010126: to=user1@xxxxxxxxxxxxxxx, ctladdr=<user1@xxxxxxxxxxxxxxxxx> (500/100), delay=00:00:07, xdelay=00:00:00, mailer=local, pri=30620, dsn=2.0.0, stat=Sent


As I read this, the first two entries are for Sendmail receiving my test message from my mail client. The last one seems to be sendmail sending the forwarded message back to user1@xxxxxxxxxxxxxxx, but note the entries "ctladdr=" and "mailer=local". What could be causing this?

Tomas

On Friday, June 20, 2003, at 10:05 AM, Steven W. Orr wrote:

On Friday, Jun 20th 2003 at 09:34 -0400, quoth Tom Rymes:

=>Hi folks, new to the list, so let me know if I should post to a
=>different forum....
=>
=>I have a RedHat 8.0 server running Sendmail. I am trying to forward
=>mail addressed to local users and am having no luck.
=>
=>If I create a .forward file in the users' home directories, nothing
=>happens, all mail is still delivered locally. If I create an alias in
=>/etc/aliases, I have a different problem. Basically, I put a line in
=>/etc/aliases as follows:
=>
=>localuser: user1@xxxxxxxxxxxxxxx
=>
=>The problem is that if I send mail to localuser@xxxxxxxxxxxxxxxxx it is
=>forwarded to the local user user1, not to user1@xxxxxxxxxxxxxxxx
=>
=>Any ideas?
=>
=>Tom
Make sure the permission of the .forward file is user only. It's a
security violation to have people access a .forward file. The clues are
in your maillog file.


--
-Time flies like the wind. Fruit flies like a banana. Stranger things have -
-happened but none stranger than this. Does your driver's license say Organ
-Donor?Black holes are where God divided by zero. Listen to me! We are all-
-individuals! What if this weren't a hypothetical question?
steveo at syslang.net



-- Psyche-list mailing list Psyche-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/psyche-list


--
Psyche-list mailing list
Psyche-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux