More Data On Mailing:
So I made a simple script to send out mails to my two external email addresses
cat MailTestScript.sh
#!/bin/bash
echo -e “This is the message from DG to alan@” |mail -s “Subject Here” alan@External-1.com
echo -e “This is the message from DG to mric” |mail -s “Subject Here” dunwell@External-2
Where the External{1/2} are two separate email addresses. When I look in the /var/log/maillog I see that the first External-1 fails and the second goes and I receive it.
Oct 11 16:01:38 dunwellguitar3 postfix/pickup[32613]: 7147B41B9C10: uid=1000 from=
Oct 11 16:01:38 dunwellguitar3 postfix/cleanup[34628]: 7147B41B9C10: message-id=20241011220138.7147B41B9C10@External-1.com
Oct 11 16:01:38 dunwellguitar3 postfix/qmgr[28665]: 7147B41B9C10: from=dunwell@External-1.com, size=385, nrcpt=1 (queue active)
Oct 11 16:01:38 dunwellguitar3 postfix/pickup[32613]: 7386E41B9C17: uid=1000 from=
Oct 11 16:01:38 dunwellguitar3 postfix/cleanup[34628]: 7386E41B9C17: message-id=20241011220138.7386E41B9C17@External-1.com
Oct 11 16:01:38 dunwellguitar3 postfix/qmgr[28665]: 7386E41B9C17: from=dunwell@External-1.com, size=378, nrcpt=1 (queue active)
Oct 11 16:01:38 dunwellguitar3 postfix/local[34634]: 7147B41B9C10: to=alan@External-1r.com, relay=local, delay=0.03, delays=0.02/0/0/0.01,
dsn=5.1.1, status=bounced (unknown user: “alan”)
Oct 11 16:01:38 dunwellguitar3 postfix/cleanup[34628]: 76E5D41B9C20: message-id=20241011220138.76E5D41B9C20@External-1.com
Oct 11 16:01:38 dunwellguitar3 postfix/bounce[34637]: 7147B41B9C10: sender non-delivery notification: 76E5D41B9C20
Oct 11 16:01:38 dunwellguitar3 postfix/qmgr[28665]: 76E5D41B9C20: from=<>, size=2206, nrcpt=1 (queue active)
Oct 11 16:01:38 dunwellguitar3 postfix/qmgr[28665]: 7147B41B9C10: removed
Oct 11 16:01:38 dunwellguitar3 postfix/local[34634]: 76E5D41B9C20: to=dunwell@External-1.com, relay=local, delay=0, delays=0/0/0/0,
dsn=5.2.0, status=bounced (cannot update mailbox /home/dunwell/~/Mymail for user dunwell. unable to create lock file /home/dunwell/~/Mymail.lock: No such file or directory)
Oct 11 16:01:38 dunwellguitar3 postfix/qmgr[28665]: 76E5D41B9C20: removed
Oct 11 16:01:55 dunwellguitar3 postfix/smtp[34635]: 7386E41B9C17: to=dunwell@External-2, relay=mx.External-2[66.96.140.188]:25, delay=17,
delays=0/0.01/17/0.24, dsn=2.0.0, status=sent (250 2.0.0 zNhps4vXLUrv0zNhrsvcfh mail accepted for delivery)
Oct 11 16:01:55 dunwellguitar3 postfix/qmgr[28665]: 7386E41B9C17: removed
Unfortunately, the first email address is the one I want to use and the second is just a spare address that I’m phasing out. Also note in the complaints about External-1 that there are notations like
/home/dunwell/~/Mymail for user dunwell
In my
/etc/postfix/master.cf
I specify the following vars
myhostname = External-1.com
mydomain = External-1.com
myorigin = $mydomain
home_mailbox = ~/Mymail
So that is likely where the ~/Mymail comes from but why does it pre-pend the use info in front of it making it a non-existent subdir?
And this from my logwatch this morning
--------------------- Postfix Begin ------------------------
1 *Warning: Database is older than source file 1
1 Miscellaneous warnings 1
19.366K Bytes accepted 19,831
1.462K Bytes sent via SMTP 1,497
======== ==================================================
10 Accepted 100.00%
10 Total 100.00%
======== ==================================================
16 Removed from queue 16
4 Sent via SMTP 4
12 Bounced (local) 12
6 Notifications sent 6
1 Postfix refresh 1
3 Running in backwards compatibile mode 3
---------------------- Postfix End -------------------------
'Umble Leafhopper is powerful confused.