Install paclink-unix
- Configure a single MTA
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
plu:test_verify [2016/09/27 15:48] gunn |
plu:test_verify [2017/12/04 10:21] (current) gunn [Common Problems] |
||
---|---|---|---|
Line 25: | Line 25: | ||
===== E-mail client & MTA (postfix) config ===== | ===== E-mail client & MTA (postfix) config ===== | ||
* Compose an e-mail with your e-mail client & send e-mail | * Compose an e-mail with your e-mail client & send e-mail | ||
+ | * [[plu:email_client_config | set up an e-mail client]] | ||
* A file should appear in the paclink-unix outbox waiting for a pending transport operation via wl2ktelnet, wl2kax25 or wl2kserial | * A file should appear in the paclink-unix outbox waiting for a pending transport operation via wl2ktelnet, wl2kax25 or wl2kserial | ||
<code bash> | <code bash> | ||
Line 75: | Line 76: | ||
====== Common Problems ====== | ====== Common Problems ====== | ||
- | ** Check permissions on the outbox file: Make sure user is in group | ||
- | mail. Note if you ever send mail as root you will screw up the | ||
- | permissions. Type: | ||
+ | == Make sure user is in group mail == | ||
+ | * Type: | ||
+ | <code bash> | ||
groups | groups | ||
+ | </code> | ||
+ | == Check permissions on the outbox file== | ||
+ | * Note if you ever send mail as root you will screw up the permissions. | ||
+ | * Check your permissions in your outbox directory like this: | ||
+ | <code bash> | ||
ls -salt /usr/local/var/wl2k/outbox/ | ls -salt /usr/local/var/wl2k/outbox/ | ||
total 16 | total 16 | ||
Line 87: | Line 93: | ||
4 drwxrwsr-x 3 gunn mail 4096 Sep 21 15:55 .. | 4 drwxrwsr-x 3 gunn mail 4096 Sep 21 15:55 .. | ||
4 -rw------- 1 gunn mail 196 Sep 21 15:55 H51W38_N7NIX | 4 -rw------- 1 gunn mail 196 Sep 21 15:55 H51W38_N7NIX | ||
+ | </code> | ||
+ | <code bash> | ||
ls -salt /usr/local/var/wl2k/ | ls -salt /usr/local/var/wl2k/ | ||
total 20 | total 20 | ||
Line 94: | Line 101: | ||
8 -rw------- 1 gunn mail 12288 Sep 21 15:55 mid.db | 8 -rw------- 1 gunn mail 12288 Sep 21 15:55 mid.db | ||
4 drwxr-sr-x 4 root staff 4096 Jul 7 12:49 .. | 4 drwxr-sr-x 4 root staff 4096 Jul 7 12:49 .. | ||
+ | </code> | ||
- | ** Check /etc/postfix/transport file | + | == Check /etc/postfix/transport file == |
- | Note hactar & brox are machines on my net. | + | * Note hactar is the local machine & brox is a machine on my local net. |
- | The last line is important | + | * The last line is important |
+ | <file> | ||
# cat transport | # cat transport | ||
# | # | ||
Line 108: | Line 116: | ||
# | # | ||
* wl2k:localhost | * wl2k:localhost | ||
+ | </file> | ||
- | ** Make sure you are addressing To: person with winlink.org | + | == Make sure you are addressing To: person with winlink.org == |
- | + | ||
- | ** Make sure your /etc/postfix/master.cf entry is correct especially | + | |
- | user. | + | |
+ | == Make sure your /etc/postfix/master.cf entry is correct especially user == | ||
+ | * Example: | ||
+ | <file> | ||
wl2k unix - n n - 1 pipe | wl2k unix - n n - 1 pipe | ||
flags=XFRhu user=gunn argv=/usr/local/libexec/mail.wl2k -m | flags=XFRhu user=gunn argv=/usr/local/libexec/mail.wl2k -m | ||
+ | </file> | ||
- | + | == Open 2 console windows for debugging == | |
- | ** In one console window type: | + | * In one console window type: |
+ | <code bash> | ||
tail -f /var/log/mail.log | tail -f /var/log/mail.log | ||
+ | </code> | ||
- | ** In another type: | + | * In another console window type: |
+ | <code> | ||
echo "test mail from command line" | mutt -s "Test12:56" n7nix@winlink.org | echo "test mail from command line" | mutt -s "Test12:56" n7nix@winlink.org | ||
- | + | </code> | |
- | * send me the output created by this command from the | + | * or using the //mail// program |
- | /var/log/mail.log file. | + | <code bash> |
+ | # from command line or script | ||
+ | echo “This will go into the body of the mail” | mail -s '//WL2K cmd line test' -a "From: yourcallsign@winlink.org" -a "Reply-To: yourcallsign@winlink.org" some_regular_email_address | ||
+ | </code> | ||
+ | * [[plu:email_client_config#mutt_and_mail | Link to set up]] //mutt// or //mail// | ||
+ | * Look for problems in the /var/log/mail.log file | ||
+ | * Open up another console window and do this: | ||
+ | <code bash> | ||
+ | tail -f /var/log/mail.log | ||
+ | </code> |