#Postfix alias Root

1 messages · Page 1 of 1 (latest)

glacial cosmos
#

Good morning,
I hope you're doing well !

I have a problem with postfix.
I have an alias to forward emails from root to my gmail address.
when I'm back :
echo "test alias" | mail -s "test 1136" root
It works, I have my email in my inbox.
on the other hand if I return
echo "test alias" | mail -s "test 1136" [email protected]
it doesn't work.
Did I miss something ?

Sorry for my English 🙂

lethal tapir
#

man mail, try debug/verbose

glacial cosmos
#

thank you

#

mail: Unable to parse address "test 1137": Malformed email address

#

I'm sure of my email address 🙂

#

My commande
mail -v -s "This is the subject" [email protected] <<< 'This is the message'
mail: option non reconnue « -v »

lethal tapir
#

Try debug

glacial cosmos
#

hard 🙂

#

root@server:~# mail.mailutils --debug-level=3 -s "This is the subject" [email protected] <<< 'This is the message'
mail.mailutils: sendmail binary: /usr/sbin/sendmail
mail.mailutils: source=system, name=root, passwd=x, uid=0, gid=0, gecos=root, dir=/root, shell=/bin/bash, mailbox=/var/mail/root, quota=0, change_uid=1
mail.mailutils: source=system, name=root, passwd=x, uid=0, gid=0, gecos=root, dir=/root, shell=/bin/bash, mailbox=/var/mail/root, quota=0, change_uid=1
mail.mailutils: mu_mailer_send_message(): using From: [email protected]
mail.mailutils: Sending headers...
mail.mailutils: Sending body...
mail.mailutils: /usr/sbin/sendmail exited with: 0

#

...