This is the command to send email using mail server with SMTP AUTH.
mail -v -s "Testing SMTP AUTH from mail command" -S smtp-auth=login -S smtp=smtp://mysmtpmailserver.com:587 -S from=me@mysmtpmailserver.com -S smtp-auth-user=me -S smtp-auth-password=mypassword mybuddy@somehost.com
-v = verbose
-s = subject
-S = option
For more options and info, please type man mail or info mail.
The last email address is the recipient address.
You can replace mail with mailx.
This command is useful to test your mailserver setup without login to GUI.
Have fun! :)
Tuesday, June 17, 2014
Subscribe to:
Comments (Atom)
Nvidia new hotplug feature on Linux
If you use nvidia driver for your GPU, you probably wonder why in some config, you can't hotplug your second monitor. You need to reboo...
-
queuegraph is a very simple mail statistics RRDtool frontend for Postfix that produces daily, weekly, monthly and yearly graphs of Postfix...
-
postfix is my MTA of choice. I use it for my mailserver because its simplicity , security and sendmail-compatible (the widely used smtp in...
-
Recently, my server's only hard disk was almost full. I bought a new hard disk with bigger size and I decided to just add it as a second...