Page 1 of 1

[Solved]Problems with mail forwarding

Posted: Wed Aug 17, 2005 8:26 am
by AGISB
Here is what I want to achive.

I want to accept mail with a php script.

System is a FreeBSD 4.9 server with sendmail.

virtusertable got the following

agisb@mydomain.com agisb
@mydomain.com test


I created a .forward in /usr/home/agisb/
test
test@mydomain.com
test@outside-serverdomain.com

now my problem is that the mail gets into /var/mail/agisb but is not forwarded at all.

Here is the mail log

Aug 17 13:17:36 one sendmail[64613]: j7HDHaaw064613: from=<user1@my-other-domain.com>, size=395, class=0, nrcpts=1, msgid=<20050817131726.M84318@my-other-domain.com>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Aug 17 13:17:36 one sendmail[64614]: j7HDHaaw064613: forward /usr/home/agisb/.forward.one+: Group writable directory
Aug 17 13:17:36 one sendmail[64614]: j7HDHaaw064613: forward /usr/home/agisb/.forward+: Group writable directory
Aug 17 13:17:36 one sendmail[64614]: j7HDHaaw064613: forward /usr/home/agisb/.forward.one: Group writable directory
Aug 17 13:17:36 one sendmail[64614]: j7HDHaaw064613: forward /usr/home/agisb/.forward: Group writable directory
Aug 17 13:17:36 one sendmail[64614]: j7HDHaaw064613: to=<agisb@mydomain.com>, ctladdr=<user1@my-other-domain.com> (1002/1002), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30658, relay=local, dsn=2.0.0, stat=Sent

I am kind of stumbled what I overlooked. Any ideas?

Posted: Wed Aug 17, 2005 8:46 am
by AGISB
Found the problem. Sendmail only uses .forward if the file and the dir it is in is not group and world writable