samedi 6 décembre 2008

Enabling outgoing internet email on a dialup/adsl host

You don't have a real internet host with a full connection and a registered domain name, do you ? If you do then you can skip this post, as it discusses something more basic for home usage.

$ sudo vi /etc/postfix/main.cf
> add this at the end:
smtp_generic_maps = hash:/etc/postfix/generic

$ sudo vi /etc/postfix/generic:
> add your mapping between local and "real" email addresses:
luce@off.mymail tuxic@aol.com
root@off.mymail tixuc@blogspot.com

$ sudo postmap /etc/postfix/generic

To check the results:
$ tail -f /var/log/mail.info
Dec 6 19:14:49 off postfix/pickup[8501]: 76CA8D7A6B: uid=1000 from=
Dec 6 19:14:49 off postfix/cleanup[8589]: 76CA8D7A6B: message-id=<20081206181449.76ca8d7a6b@off.home>
Dec 6 19:14:49 off postfix/qmgr[8503]: 76CA8D7A6B: from=<luce@off.home>, size=28995, nrcpt=1 (queue active)
Dec 6 19:14:51 off postfix/smtp[8591]: 76CA8D7A6B: to=<tuxic@aol.com>, relay=smtp.micromou.com[1.7.7.2]:25, delay=1.9, delays=0.04/0.02/0.57/1.3, dsn=2.0.0, status=sent (250 2.0.0 mB6IEnRH030552 Message accepted for delivery)
Dec 6 19:14:51 off postfix/qmgr[8503]: 76CA8D7A6B: removed

Aucun commentaire: