[Solved]Problems with mail forwarding

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
AGISB
Forum Contributor
Posts: 422
Joined: Fri Jul 09, 2004 1:23 am

[Solved]Problems with mail forwarding

Post 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?
Last edited by AGISB on Sat Aug 20, 2005 2:09 am, edited 1 time in total.
AGISB
Forum Contributor
Posts: 422
Joined: Fri Jul 09, 2004 1:23 am

Post by AGISB »

Found the problem. Sendmail only uses .forward if the file and the dir it is in is not group and world writable
Post Reply