Mercurial > masqmail
annotate docs/simple-local-setup @ 434:f2a7271746d1 default tip
Removes Freshmeat.net from the docs
The site, which was later renamed to freecode.com, is no longer
maintained (contains only a static copy).
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Sat, 07 Feb 2015 11:45:07 +0100 |
parents | 5781ba87df95 |
children |
rev | line source |
---|---|
186 | 1 Simple Setup |
2 ============ | |
3 | |
4 You want | |
5 -------- | |
6 | |
7 - submit mail on stdin by calling masqmail on the commandline | |
8 - submit mail with SMTP from the local machine | |
9 - let masqmail deliver mail locally to the system mailboxes /var/mail/* | |
10 | |
11 You have luck, because this is what masqmail does by default. | |
12 | |
13 | |
14 Set up | |
15 ------ | |
16 | |
17 Follow the description in INSTALL. | |
18 | |
378
5781ba87df95
Removed ident. This had been discussed on the mailing list in Oct 2011.
markus schnalke <meillo@marmaro.de>
parents:
364
diff
changeset
|
19 Most times it's simply: |
186 | 20 |
378
5781ba87df95
Removed ident. This had been discussed on the mailing list in Oct 2011.
markus schnalke <meillo@marmaro.de>
parents:
364
diff
changeset
|
21 ./configure |
186 | 22 |
23 | |
24 Configuration | |
25 ------------- | |
26 | |
27 You just need a minimal config file, having one line: | |
28 | |
29 host_name = "foo.example.org" | |
30 | |
31 (Substitute a real value, of course.) | |
32 | |
33 | |
34 Starting the daemon | |
35 ------------------- | |
36 | |
37 Listening for SMTP connections on a port requires masqmail to run as | |
38 daemon. You probably want to start masqmail as daemon each time the | |
39 system comes up. How you have to do that is system dependent. | |
40 /etc/rc.local is a good try to add the daemon call, because this file | |
41 seems to be frequently available. | |
42 | |
43 /usr/local/sbin/masqmail -bd -q10m | |
44 | |
45 This starts masqmail in daemon mode and does a queue run every ten | |
46 minutes. | |
47 | |
48 | |
49 Check the setup | |
50 --------------- | |
51 | |
52 Ensure you have the sendmail links correct: | |
53 | |
54 $ ls -l /usr/lib/sendmail /usr/sbin/sendmail | |
55 lrwxrwxrwx 1 root root 25 2010-03-06 13:50 /usr/lib/sendmail -> /usr/local/sbin/masqmail* | |
56 lrwxrwxrwx 1 root root 25 2010-03-06 13:50 /usr/sbin/sendmail -> /usr/local/sbin/masqmail* | |
57 | |
58 Send a mail to yourself: | |
59 | |
60 $ echo "some text" | mail `whoami` | |
61 | |
62 Check if the mail was delivered (then delete it and quit): | |
63 | |
64 $ mail | |
65 Mail version 8.1.2 01/15/2001. Type ? for help. | |
66 "/var/mail/meillo": 1 message 1 new | |
67 >N 1 meillo@serveme.sc Wed Jul 14 22:50 13/467 | |
68 & p | |
69 Message 1: | |
70 From <meillo@serveme.schnalke.local> Wed Jul 14 22:50:13 2010 | |
71 Envelope-to: <meillo@serveme.schnalke.local> | |
72 To: meillo | |
73 From: <meillo@serveme.schnalke.local> | |
74 Date: Wed, 14 Jul 2010 22:50:13 +0200 | |
75 | |
76 some text | |
77 | |
78 & d | |
79 & q | |
80 | |
81 | |
82 In case of problems | |
83 ------------------- | |
84 | |
85 Have a look at the log file: /var/log/masqmail/masqmail.log | |
86 | |
87 Set the debug level in masqmail.conf, restart the daemon, redo the | |
88 test, and look at the debug file: /var/log/masqmail/debug.log | |
89 | |
90 Ask on the mailing list: <masqmail@marmaro.de> | |
91 | |
92 | |
93 | |
94 meillo |