Also, on executing "mail -s "test again"
my_address@gmail.com < test_mesage" the /var/log/mail.log has:
Code:
Jul 10 16:21:24 my_machine postfix/pickup[2348]: 528C867244E: uid=1000 from=<my_user>
Jul 10 16:21:24 my_machine postfix/cleanup[2837]: 528C867244E: message-id=<20090710202124.528C867244E@my_machine.local>
Jul 10 16:21:24 my_machine postfix/qmgr[2349]: 528C867244E: from=<my_user@my_machine.local>, size=334, nrcpt=1 (queue active)
Jul 10 16:21:24 my_machine postfix/smtp[2839]: setting up TLS connection to smtp.gmail.com[x.x.x.x]:587
Jul 10 16:21:24 my_machine postfix/smtp[2839]: Verified TLS connection established to smtp.gmail.com[x.x.x.x]:587: TLSv1 with cipher RC4-MD5 (128/128 bits)
Jul 10 16:21:26 my_machine postfix/smtp[2839]: 528C867244E: to=<my_address@gmail.com>, relay=smtp.gmail.com[x.x.x.x]:587, delay=1.8, delays=0.03/0.02/0.76/0.98, dsn=2.5.0, status=sent (250 2.5.0 Ok.)
Jul 10 16:21:26 my_machine postfix/qmgr[2349]: 528C867244E: removed
However, when executing "sudo logwatch --mailto
my_address@gmail.com" I get the following in /var/log/mail.log:
Code:
Jul 10 16:26:52 my_machine postfix/pickup[2348]: 0E38667244E: uid=0 from=<root>
Jul 10 16:26:52 my_machine postfix/cleanup[3263]: 0E38667244E: message-id=<20090710202652.0E38667244E@my_machine.local>
Jul 10 16:26:52 my_machine postfix/qmgr[2349]: 0E38667244E: from=<root@my_machine.local>, size=4324, nrcpt=1 (queue active)
Jul 10 16:26:52 my_machine postfix/smtp[3265]: setting up TLS connection to smtp.gmail.com[x.x.x.x]:587
Jul 10 16:26:52 my_machine postfix/smtp[3265]: Verified TLS connection established to smtp.gmail.com[x.x.x.x]:587: TLSv1 with cipher RC4-MD5 (128/128 bits)
Jul 10 16:26:53 my_machine postfix/smtp[3265]: 0E38667244E: to=<my_address@gmail.com>, relay=smtp.gmail.com[x.x.x.x]:587, delay=3.2, delays=1.8/0.02/0.77/0.61, dsn=5.7.0, status=bounced (host smtp.gmail.com[x.x.x.x] said: 550 5.7.0 From address is not one of your addresses. (in reply to end of DATA command))
Jul 10 16:26:53 my_machine postfix/cleanup[3263]: 8038F67244F: message-id=<20090710202653.8038F67244F@my_machine.local>
Jul 10 16:26:53 my_machine postfix/bounce[3266]: 0E38667244E: sender non-delivery notification: 8038F67244F
Jul 10 16:26:53 my_machine postfix/qmgr[2349]: 8038F67244F: from=<>, size=6165, nrcpt=1 (queue active)
Jul 10 16:26:53 my_machine postfix/qmgr[2349]: 0E38667244E: removed
Jul 10 16:26:53 my_machine postfix/smtp[3267]: 8038F67244F: to=<root@my_machine.local>, relay=none, delay=0.04, delays=0.02/0.02/0/0, dsn=5.4.6, status=bounced (mail for my_machine.local loops back to myself)
Jul 10 16:26:53 my_machine postfix/qmgr[2349]: 8038F67244F: removed
So, it seems that it is sending from "root" even though I have changed this in the logwatch.conf file.