View previous topic :: View next topic |
Author |
Message |
Kailee n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Jan 2004 Posts: 35
|
Posted: Fri Sep 10, 2004 11:36 pm Post subject: How to set From: Header using mailx? |
|
|
Hi all,
I send admin messages from cron-based backup scripts on backuphost.domain1.tld to myself at admin@domain2.tld using mailx's mail, but since I added
Code: |
smtpd_recipient_restrictions =
reject_invalid_hostname,
reject_unauth_pipelining,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination
|
in the main.cf at domain2.tld this gets rejected by the receiving postfix at domain2.tld as the sender appears as backup@backuphost.domain1.tld, and not backup@domain1.tld.
So how do I instruct mailx to use a user-specified From: header?
Alternatively, is there any other way to send the stdout of a command I run by email in the way of doing
Code: |
ls -l | mail -s test admin@domain2.tld
|
Many Thanks,
Kailee. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Kailee n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Jan 2004 Posts: 35
|
Posted: Sat Sep 11, 2004 9:17 am Post subject: SOLVED: How to set From: Header using mailx? |
|
|
Hi all,
it turned out that /usr/sbin/sendmail was a link to sendmail.sendmail, so it wouldn't know about setting the $myorigin in postfix' main.cf.... After making sure sendmail was the one that somes with postfix, and setting $myorigin to domain1.tld all was hunkydory..
Cheers,
Kai. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|