Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP ".forward" won't forward mails as it should

Status
Not open for further replies.

conniefu

Technical User
Sep 14, 2001
20
US
Hi

I am trying to forward all mails from user 'sybase' to 'root' by setting up $HOME/.forward file. But new mails still go to sybase instead of root. I did same thing for user 'dameon'and it works. Here is the part of mail log from syslogd. Thanks for any advice.

dakserv2:mqueue> tail log
Oct 8 10:07:02 dakserv2 sendmail[23058]: KAA23058: forward /usr/grok/sybase/.forward.dakserv2+: Group writable director
y
Oct 8 10:07:02 dakserv2 sendmail[23058]: KAA23058: forward /usr/grok/sybase/.forward+: Group writable directory
Oct 8 10:07:02 dakserv2 sendmail[23058]: KAA23058: forward /usr/grok/sybase/.forward.dakserv2: Group writable directory
Oct 8 10:07:02 dakserv2 sendmail[23058]: KAA23058: forward /usr/grok/sybase/.forward: Group writable directory
Oct 8 10:07:02 dakserv2 sendmail[23058]: KAA23058: from user root: size is 33, class is 0, priority is 30033, and nrcpt
s=1, message id is <200210081507.KAA23058@dakserv2.dakotaimaging.com>, relay=root@localhost
Oct 8 10:07:02 dakserv2 sendmail[20606]: KAA23058: forward /usr/grok/sybase/.forward.dakserv2+: Group writable director
y
Oct 8 10:07:02 dakserv2 sendmail[20606]: KAA23058: forward /usr/grok/sybase/.forward+: Group writable directory
Oct 8 10:07:02 dakserv2 sendmail[20606]: KAA23058: forward /usr/grok/sybase/.forward.dakserv2: Group writable directory
Oct 8 10:07:02 dakserv2 sendmail[20606]: KAA23058: forward /usr/grok/sybase/.forward: Group writable directory
Oct 8 10:07:02 dakserv2 sendmail[20606]: KAA23058: to=sybase, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mail
er=local, stat=Sent
 
What does the log say about user &quot;daemon&quot;? What are the differences/similarities of the accounts? Meekness: Uncommon patience in planning a revenge that is worth while.
-- Ambrose Bierce
 
Pay heed to the warning messages. Sendmail is probably not liking the fact that .forward exists in a group-writable directory, and thus refusing to relay.
 
Thanks for all the advice. It's probably related to the permission of the directory. /usr/grok/sybase is sybase's home directory but owned by user 'sys' and group 'sys'. I am afraid of changing it.

drwxr-sr-x 19 sys sys 1024 May 01 18:07 sybase


Another interesting thing is if /etc set as 777 instead of 755, sendmail couldn't work properly.
 
Why not create a simple entry in the aliases file, or don't you have access to that?

sybase: root IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
 
aixmurderer,

That's what I did (creating aliase in /etc/aliases) in order to forward the mails. I am curious why &quot;./forward&quot; won't work.

Thanks,

connie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top