1 |
Stroller <stroller@××××××××××××××××××.uk> writes: |
2 |
|
3 |
> On 14/11/2010, at 5:57am, Kevin O'Gorman wrote: |
4 |
> |
5 |
>> Some time ago, it appears, postfix stopped working for me. I am no longer able |
6 |
>> to use it to send mail (usually to my ISP, where it gets routed). |
7 |
>> ... |
8 |
>> I don't even know where to start on this. Can anyone give me a shove in the |
9 |
>> right direction. I'm pretty good at this, but I only configured Postfix once and it |
10 |
>> was a long time ago. |
11 |
> |
12 |
> 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. |
13 |
> |
14 |
> 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. |
15 |
> |
16 |
> Seriously, the first place to look is ALWAYS the logs. |
17 |
> |
18 |
> Once you've got mail working, consider something like: |
19 |
> $ grep ELOG /etc/make.conf |
20 |
> PORTAGE_ELOG_CLASSES="warn error log" |
21 |
> PORTAGE_ELOG_SYSTEM="save mail" |
22 |
> PORTAGE_ELOG_MAILURI="root" |
23 |
> PORTAGE_ELOG_MAILFROM="portage@yourhostname" |
24 |
> $ |
25 |
> |
26 |
> Note that postmaster & root should be configured in /etc/mail/aliases |
27 |
> - typically postmaster -> root, root -> you. About the hardest part of |
28 |
> setting up a Postfix install is running the newaliases command. |
29 |
|
30 |
The only "hard" part for me was that I needed to set up sasl since the |
31 |
site I relay through (smtp.cs.nyu.edu) requires authentication. |
32 |
If you don't need this authentication with password, then there is |
33 |
really nothing hard. |
34 |
|
35 |
A few revisions ago postfix changed this but supplied a legacy version |
36 |
that I use. Lately, the updates have been painless (although stressful, |
37 |
due to the importance of mail). |
38 |
|
39 |
As mentioned the logs are helpful and the verbosity can be configured. |
40 |
From my current main.cf |
41 |
|
42 |
# DEBUGGING CONTROL |
43 |
# |
44 |
# The debug_peer_level parameter specifies the increment in verbose |
45 |
# logging level when an SMTP client or server host name or address |
46 |
# matches a pattern in the debug_peer_list parameter. |
47 |
# |
48 |
debug_peer_level = 2 |
49 |
|
50 |
# The debug_peer_list parameter specifies an optional list of domain |
51 |
# or network patterns, /file/name patterns or type:name tables. When |
52 |
# an SMTP client or server host name or address matches a pattern, |
53 |
# increase the verbose logging level by the amount specified in the |
54 |
# debug_peer_level parameter. |
55 |
# |
56 |
#debug_peer_list = 127.0.0.1 |
57 |
#debug_peer_list = some.domain |
58 |
#ajg: uncomment next line when debugging authentication |
59 |
#debug_peer_list = smtp.cs.nyu.edu |
60 |
|
61 |
Good luck, |
62 |
allan |