Johannes Christian wrote:
mail email@xxxxxxxxx -s <subject> < mail_text.txtbut i am using qmail server with virtual domain, how can i set the sender to a specific address?
If you have the list of recipients in file recipients.txt (one per line), and the mail message (both headers and body, separated by a blank line) in mail.txt, you can do:
$ /usr/sbin/sendmail -f sender@xxxxxxxxxxx $(cat recipients.txt) < mail.txt Paul.