Stefan Hornburg wrote:
On Sat, 18 Sep 2004 19:59:19 -0600
"Joseph C. Lininger" <jba...@pcdesk.net> wrote:
Hi all,
I am using the entire Courier package for sending and receiving mail for my
domain. To accomodate some of my users who can't send mail via standard
smtp, I am trying to use the outbox feature under courier-imap. I edited the
/etc/courier/imapd file to change the folder to .SendAMessage and restarted
the server. I then created that folder under my account and moved a message
to it. The message is not being sent out via sendmail as it should be. I
tried renaming the fodler in the config file from .SendAMessage to just
SendAMessage to see if that helped, and it didn't. It is just treating that
as a regular folder. Can anyone shed some light on this oddity? Thanks in
advance. I have included the lines from my /etc/courier/imapd file below.
Oh, one more thing. I am running Gentoo Linux, with the kernel version
2.4.26 with some grsecurity options enabled.
Which Courier version do you using ? The OUTBOX feature was broken up to
Courier 0.46.
You can implement a cronjob that takes care of the sending of the mail.
I use cronjobs for a number of (other) tasks and it works like a charm.
Something along the lines of (untested!):
for f in /home/*/Maildir/.Outbox/cur/*; do
/usr/sbin/sendmail -t -i <$f && rm $f
done
Should do the trick. (Add some locking if you plan on running this
frequently!)
HTH,
M4