Home › Forums › OS X Server and Client Discussion › Mail › Need some postfix/procmail help
- This topic has 5 replies, 3 voices, and was last updated 20 years, 7 months ago by
Ralphonse.
-
AuthorPosts
-
February 4, 2004 at 2:29 pm #357342
Anonymous
ParticipantI have tried to implement procmail using the Jason Derleau article on macdevcenter.com. Unfortunately I am not having much success. As a postfix/procmail neophite, I did find something that raises a question in my mind.
In the Cyrus ‘deliver’ command, as defined in ‘master.cf’, the ‘-m’ arguement has ‘${extension} ${user}’.
However, in the ‘procmailrc’ file, Jason’s Cyrus ‘deliver’ command ‘-m’ argument has ‘user/$USER’. Why is this argument not ‘$EXTENSION $USER’?
I’m hoping this is the problem. No mail is getting through when I use Jason’s configurations. I don’t know where I can find any logs for this but the system.log does have an ‘auxpropfunc error -1’ in it. I don’t know if this it related to my problme or not. I would be grateful to anyone who can point me in the right direction. TIA.
February 4, 2004 at 6:29 pm #357345Anonymous
ParticipantI have been digging around with this and now believe the ‘user/$USER’ arguement is correct.
However, there are still no logs anywhere I can find to help me debug this. One thing I did find is that in the SMTP log, when relay=procmail; delay=1. I believe this means the message is not being sent but rather held. I really need someone to help me debug this problem or at least point me to a log somewhere of procmail activity. TIA.
February 5, 2004 at 5:47 pm #357356Anonymous
ParticipantThanks for the reply. After numerous starting and stopping of services I could not get this working. However, for other reasons I had to reboot the server this morning. When I got back to this it suddenly started working. Once again it seems Apple is taking a page out of the Windows book where rebooting fixes a world of problems. 😉
April 30, 2004 at 1:43 pm #357915Anonymous
Participant[quote:fcae4df44e=”MacTroll”]Second thing is that procmail has no concept of the secondary shortnames for users. So you can’t use those as mail aliases or else you’ll run into problems.
[/quote:fcae4df44e]Sure you can, I did it this morning
I just copied what was in master.cf in cyrus rule in my procmailrc :
:0w
| /usr/bin/cyrus/bin/deliver -e -r -m $EXTENSION $USERAnd my master.cf line for procmail is the following :
procmail unix – n n – – pipe
flags=R user=cyrus argv=/usr/bin/procmail -t -m USER=${user} EXTENSION=${extension} /etc/procmailrc(of course, as usual for this file, this is on 2 lines)
The problem I have is that the return-path is not set properly by the -r option of deliver, even if I try to transfer the ${sender} variable, cyrus fails, if I take the -r option from my procmailrc, cyrus fails :-/
I’m still seeking but with these lines you can have cyrus deliver mails in the good mailboxes even if you use any of the short names as email adress.
If any of you has an idea for this return path problem…
September 18, 2004 at 9:38 pm #359219Ralphonse
Participant[QUOTE BY= MacTroll] Procmail is a really really bad idea.
(SNIP)
Second thing is that procmail has no concept of the secondary shortnames for users. So you can’t use those as mail aliases or else you’ll run into problems.
Joel[/QUOTE]
we have mail aliases here, as the login name is ralph_schwegler, and the mail address is ralph.schwegler. although it works, something strange is happening: serveradmins thinks from time to time that a new user “ralph.schwegler” has been created. is this the cause?
we also have the auxpropfunc error -1 in our system.log
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed