1 |
On 14/11/2010, at 5:57am, Kevin O'Gorman wrote: |
2 |
|
3 |
> Some time ago, it appears, postfix stopped working for me. I am no longer able |
4 |
> to use it to send mail (usually to my ISP, where it gets routed). |
5 |
> ... |
6 |
> I don't even know where to start on this. Can anyone give me a shove in the |
7 |
> right direction. I'm pretty good at this, but I only configured Postfix once and it |
8 |
> was a long time ago. |
9 |
|
10 |
Start configuring Postfix again from scratch, following the guide (E.G. <http://en.gentoo-wiki.com/wiki/Postfix>). For a basic install of Postfix - i.e. outgoing proxy, on your LAN, behind a router - then there's very little you need to configure. About 3 or 4 lines in main.cf. |
11 |
|
12 |
You should be doing stuff like telnetting to port 25 <http://www.yuki-onna.co.uk/email/smtp.html> and `sendmail kevin < file.txt` (assuming kevin is a valid local user and you know how to read the mailbox). If there's no reply on port 25 then you know postfix isn't starting. |
13 |
|
14 |
Seriously, the first place to look is ALWAYS the logs. |
15 |
|
16 |
Once you've got mail working, consider something like: |
17 |
$ grep ELOG /etc/make.conf |
18 |
PORTAGE_ELOG_CLASSES="warn error log" |
19 |
PORTAGE_ELOG_SYSTEM="save mail" |
20 |
PORTAGE_ELOG_MAILURI="root" |
21 |
PORTAGE_ELOG_MAILFROM="portage@yourhostname" |
22 |
$ |
23 |
|
24 |
Note that postmaster & root should be configured in /etc/mail/aliases - typically postmaster -> root, root -> you. About the hardest part of setting up a Postfix install is running the newaliases command. |
25 |
|
26 |
Stroller. |