[Typo3-UG Denmark] Direct mail - engine problemer
Lars E. D. Jensen
lars-typo3 at dangvard.dk
Mon Jan 3 23:30:31 CET 2005
> Jeg kan så i "mailer engine status" manuelt starte min mailer engine,
> også sender den fint. Her står så at typo3 skal konfigureser til at
> motoren køre automatisk.
>
> Men jeg kan ikke finde ud af hvor det er man skal konfigurere den. :-(
Nedenstående er fundet på typo3.org og burde virke:
---cut---
Hi list,
This mail is intended to serve as a mini-guide on how to set-up the Direct
Mail plugin working with the mail scheduler and the returned mail
statistics.
I've found this way to be less MTA dependant than others, so it could be
used with almost any mail server with no changes.
The work is done by 2 php scripts found in typo3/ext/direct_mail/mod/
directory:
- "dmailerd.phpcron", runs the mail queue
- "returnmail.phpsh", process returned mails via stdin
For the mail scheduler, we have to run the mail queue every x time, so we
can set up a line on our /etc/crontab as follows:
-- Begin of /etc/crontab editing ---
# typo3 dmailers
0-59/1 * * * * apache
/home/httpd/vhosts/mydomain.com/httpdocs/typo3/ext/direct_mail/mod/dmailerd.
phpcron
-- End of /etc/crontab editing ---
We have just set up the mail queue for "mydomain.com" running through user
"apache" once a minute.
That was easy. The return mail script is a bit more complicated.
We have to forward all the returned messages to the script's stdin, so we
are going to use fetchmail. You should have it installed before proceeding.
In our user home directory (can be root) create a file named ".fetchmailrc"
and edit it as follows:
-- Begin of $/.fetchmailrc editing --
poll mydomain.com proto pop3 timeout 30
user "mypopuser" pass "mypasswd" nokeep mda
"/home/httpd/vhosts/mydomain.com/httpdocs/typo3/ext/direct_mail/mod/returnma
il.phpsh"
-- End of $/.fetchmailrc editing --
After that, we can run fetchmail in daemon mode by the following command:
fetchmail -d 300 -syslog
It will poll the pop3 mailbox every 5 minutes, and redirect every message it
has to our script.
And that's all, folks! For comments please write to the mailing list
Have a nice Typo3 experience!
-------------------------------
Jose Antonio Guerra Pablos
Director Creativo
ICTI Consulting
www.icticonsulting.com
---cut---
--
Med venlig hilsen / Best regards
Lars E. D. Jensen
lars at dangvard.dk
More information about the TYPO3-UG-denmark
mailing list