Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
plu:test_verify [2014/05/04 12:05]
gunn [Test & Verify]
plu:test_verify [2017/12/04 10:21]
gunn [Common Problems]
Line 1: Line 1:
 ====== Test & Verify ====== ====== Test & Verify ======
 ===== Need More Data ===== ===== Need More Data =====
-  * If you have problems please run the following 2 scripts and compose ​message like this:+  * If you have a problem & I ask you for more data go [[plu:test_verify:​need_more_data | here]]
  
-<code bash> 
-./​pluchk1.sh 
- 
-# using what ever mail client you have compose a mail message to yourself and n7nix 
- 
-./​pluchk2.sh 
-</​code>​ 
- 
-  * Now compose a regular e-mail message and attach all these files: 
-    * ~/​tmp/​pluchk 
-    * /​etc/​postfix/​man.cf 
-    * /​etc/​postfix/​master.cf 
-    * /​etc/​postfix/​transport 
- 
-=== pluchk1.sh === 
-<​file>​ 
-#!/bin/bash 
-# 
-# File : pluch1.sh 
-# 
-# Verify paclink-unix install, part 1 
- 
- 
-scriptname="​`basename $0`" 
-user=$(whoami) 
- 
-VERSION="​1.0"​ 
- 
-TMPDIR="/​home/​$user/​tmp"​ 
-DEBUGFILE="​$TMPDIR/​pluchk.txt"​ 
- 
-WL2KDIR="/​usr/​local/​var/​wl2k"​ 
-OUTBOXDIR="​$WL2KDIR/​outbox"​ 
- 
-MAILDIR1="/​home/​$user/​Mail"​ 
-MAILDIR2="/​home/​$user/​mail"​ 
-MAILDIR3="/​var/​mail"​ 
- 
-# Verify NOT running as root 
-if [[ $EUID -eq 0 ]] ; then 
-  echo "*** Do NOT run as root ***" 2>&1 
-  exit 1 
-fi 
- 
-# check for existence of a local tmp directory 
-if [ ! -d "​$TMPDIR"​ ] ; then 
-  mkdir $TMPDIR 
-fi 
- 
-# Collect some data 
-{ 
-echo "=== Debug log file $(date) ===" 
-echo "=== local Mail dir ===" 
-if [ -e $MAILDIR1 ] ; then 
-  ls -alt $MAILDIR1 
-fi 
-if [ -e $MAILDIR2 ] ; then 
-  ls -alt $MAILDIR2 
-fi 
-echo "=== /var/mail ===" 
-if [ -e $MAILDIR3 ] ; then 
-  ls -alt $MAILDIR3 
-fi 
- 
-echo 
-echo "=== $WL2KDIR ===" 
- 
-if [ -d $WL2KDIR ] ; then 
- 
-  filecount=$(ls -1 $OUTBOXDIR | wc -l) 
-  ls -alt $WL2KDIR 
-  echo 
-  echo "=== $OUTBOXDIR (count $filecount) ===" 
-  ls -alt $OUTBOXDIR 
-else 
-  echo "​$WL2KDIR not found" 
-fi 
- 
-echo 
-echo "=== mail log #1 ===" 
-tail -n 6 /​var/​log/​mail.log 
-echo 
-echo "=== sys log #1 ===" 
-tail -n 6 /​var/​log/​syslog 
-} > $DEBUGFILE 
- 
-echo "​$scriptname done" 
-exit 0 
-</​file>​ 
- 
-=== pluchk2.sh === 
-<​file>​ 
-#!/bin/bash 
-# 
-# File : pluch2.sh 
-# 
-# Verify paclink-unix install, part 2 
- 
- 
-scriptname="​`basename $0`" 
-user=$(whoami) 
-wait_time=10 
- 
-VERSION="​1.0"​ 
- 
-TMPDIR="/​home/​$user/​tmp"​ 
-DEBUGFILE="​$TMPDIR/​pluchk.txt"​ 
- 
-WL2KDIR="/​usr/​local/​var/​wl2k"​ 
-OUTBOXDIR="​$WL2KDIR/​outbox"​ 
- 
-MAILDIR1="/​home/​$user/​Mail"​ 
-MAILDIR2="/​home/​$user/​mail"​ 
-MAILDIR3="/​var/​mail"​ 
- 
-# ==== Function telnet call ==== 
-# arg1 = iteration identifier 
- 
-do_telnet() 
-{ 
-  { 
-    wl2ktelnet 2>&1 
-    echo 
-    echo "=== mail log $1 ===" 
-    tail -n 10 /​var/​log/​mail.log 
-    echo 
-    echo "=== sys log $1 ===" 
-    tail -n 10 /​var/​log/​syslog 
-    echo 
-    filecount=$(ls -1 $OUTBOXDIR | wc -l) 
-    echo "=== finished $1 with outgoing count $filecount ===" 
-    echo 
-  } >> $DEBUGFILE 
-} 
- 
-#==== Main ==== 
-# Verify NOT running as root 
-if [[ $EUID -eq 0 ]] ; then 
-  echo "*** Do NOT run as root ***" 2>&1 
-  exit 1 
-fi 
- 
-# collect some data 
-do_telnet 2 
- 
-echo "​waiting for $wait_time seconds ..." 
-sleep $wait_time 
- 
-do_telnet 3 
- 
-echo "​$scriptname done" 
-exit 0 
-</​file>​ 
 ===== AX.25 to TNC connection ===== ===== AX.25 to TNC connection =====
   * Verify that the AX.25 config & TNC to radio & TNC to computer connections are working properly.   * Verify that the AX.25 config & TNC to radio & TNC to computer connections are working properly.
Line 178: 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 225: Line 73:
 wl2kax25 -c <​someRMSGateway>​ <​someDigipeater>​ wl2kax25 -c <​someRMSGateway>​ <​someDigipeater>​
 man wl2kax25 man wl2kax25
 +</​code>​
 +
 +====== Common Problems ======
 +
 +== Make sure user is in group mail ==
 +  * Type:
 +<code bash>
 +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/​
 +total 16
 +4 drwxrwsr-x 2 gunn mail 4096 Sep 21 16:48 .
 +4 -rw------- 1 gunn mail  214 Sep 21 16:48 V1IRQZ_N7NIX
 +4 drwxrwsr-x 3 gunn mail 4096 Sep 21 15:55 ..
 +4 -rw------- 1 gunn mail  196 Sep 21 15:55 H51W38_N7NIX
 +</​code>​
 +<code bash>
 +ls -salt /​usr/​local/​var/​wl2k/​
 +total 20
 +4 drwxrwsr-x 2 gunn mail   4096 Sep 21 16:48 outbox
 +4 drwxrwsr-x 3 gunn mail   4096 Sep 21 15:55 .
 +8 -rw------- 1 gunn mail  12288 Sep 21 15:55 mid.db
 +4 drwxr-sr-x 4 root staff  4096 Jul  7 12:49 ..
 +</​code>​
 +
 +== Check /​etc/​postfix/​transport file ==
 +  * Note hactar is the local machine & brox is a machine on my local net.
 +    * The last line is important
 +<​file>​
 +# cat transport
 +#
 +localhost ​     :
 +hactar ​      ​local:​
 +hactar.localnet ​ local:
 +brox smtp:​[brox.localnet]
 +brox.localnet smtp:​[brox.localnet]
 +#
 +*         ​wl2k:​localhost
 +</​file>​
 +
 +== Make sure you are addressing To: person with winlink.org ==
 +
 +== Make sure your /​etc/​postfix/​master.cf entry is correct especially user ==
 +  * Example:
 +<​file>​
 +wl2k      unix  -       ​n ​      ​n ​      ​- ​      ​1 ​     pipe
 +  flags=XFRhu user=gunn argv=/​usr/​local/​libexec/​mail.wl2k -m
 +</​file>​
 +
 +== Open 2 console windows for debugging ==
 +  * In one console window type:
 +<code bash>
 +tail -f /​var/​log/​mail.log
 +</​code>​
 +
 +  * In another console window type:
 +
 +<​code>​
 +echo "test mail from command line" | mutt -s "​Test12:​56"​ n7nix@winlink.org
 +</​code>​
 +  * or using the //mail// program
 +<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>​ </​code>​
plu/test_verify.txt · Last modified: 2017/12/04 10:21 by gunn
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0