Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to set From: Header using mailx?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Kailee
n00b
n00b


Joined: 01 Jan 2004
Posts: 35

PostPosted: Fri Sep 10, 2004 11:36 pm    Post subject: How to set From: Header using mailx? Reply with quote

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
View user's profile Send private message
Kailee
n00b
n00b


Joined: 01 Jan 2004
Posts: 35

PostPosted: Sat Sep 11, 2004 9:17 am    Post subject: SOLVED: How to set From: Header using mailx? Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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