get rid of certain tags with mailx or sendmail


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers get rid of certain tags with mailx or sendmail
# 1  
Old 07-27-2007
get rid of certain tags with mailx or sendmail

Hello,

So i want to get rid of "X-Authentication-Warning" when sending out mails with modified returnadress/senderadress

ie. when executing "cat test.email | mailx -t -r me@www.tld" (in test.email theres given To, Subject and textmailcontent")

- yet it says "UNIXUSER set sender to me@www.tld using -r" -whenever i use this function -r either with mailx or sendmail (same same).


Can anyoe help me out ?
# 2  
Old 07-27-2007
It should work if you configure the sending (unix) user to be a trusted user in sendmail. By default sendmail does not allow "just anyone" to rewrite the headers on mails without flagging this.

The default file is /etc/mail/trusted-users

Add the following to sendmail.mc
Code:
FEATURE(`use_ct_file')

add the following if you want ot use a different file:
Code:
define(`confCT_FILE', `/etc/mail/trusted.list')

If you want the file to optionally exist:
Code:
define(`confCT_FILE', `-o /etc/mail/trusted_users')

otherwise sendmail will not start if the file is missing.

rebuild your sendmail.cf
restart sendmail
# 3  
Old 08-03-2007
thanks, currently only root is in the mail trusted users.

i found out that the certain xauth warning can be avoided when calling sendmail with -t flag, to search for To: Subject: and stuff like that in a mailfile. Somehow Return-adress is not being modified as wanted. Do you think this could be changed if im gonna be trusted ?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Mailx , sendmail and mailhost

Hi all, I am trying to grasp the concept between the 3 entity above. I understand that mailx - MUA I also understand that sendmail = MTA 1) If I have a centralized mail server (which might not be sendmail), can I just set mailhost in "/etc/hosts" to point to that mailserver and use... (7 Replies)
Discussion started by: javanoob
7 Replies

2. UNIX for Dummies Questions & Answers

how to sendmail using mailx in linux

how to sendmail to other computer in the same computer lab using mailx? (8 Replies)
Discussion started by: help me
8 Replies

3. UNIX for Advanced & Expert Users

mailx Vs sendmail to send internal emails to exchange

Hi Gurus, I have been searching for this around, but sendmail seems complicated and not sure if "mail" command would do, since all what I need to send internal emails from my solaris 10 box to our exchange server. Would the mailx or mail command do ? I tried the : # mailx -s test... (2 Replies)
Discussion started by: aladdin
2 Replies

4. Solaris

mailx/sendmail configuration/set up problem

Hello Good People of Linux World!!! Background: Recent Networking Graduate, thrown in line of fire. For the past couple of days I have been searching online for answers and haven't gotten anywhere regarding Mailx, Sendmail functionality on SunOS 5.9. My dilemma: Mailx / sendmail are... (28 Replies)
Discussion started by: kazmiM
28 Replies

5. Solaris

Configure mailx or sendmail

hi, I would like to configure mailx or sendmail to send out some mails to some users. I tried searching online for the configuration but it was kinda confusing. I thought that posting here might get someone to work with me step by step I tried sending out mail but i did not receive in my... (4 Replies)
Discussion started by: cghcgh
4 Replies

6. UNIX for Dummies Questions & Answers

Difference between mail,mailx,sendmail

Hello friends I need to know the difference between mail,mailx and sendmail commands. Thanks in advance (1 Reply)
Discussion started by: rocker
1 Replies

7. UNIX for Dummies Questions & Answers

Sendmail? Mailx? SMTP?

We require e-mails to come from one of our Solaris 10 boxes ASAP and have found that when using such things as Sendmail and Mailx all the mail goes to a Q that only fires every 15 minutes. We have tried everything we could think of to adjust this to force the Q to go every 1 minute but so far no... (3 Replies)
Discussion started by: LRoberts
3 Replies

8. UNIX for Dummies Questions & Answers

Remove certain headers using mailx or sendmail

Hello, So i want to send mails in any way from a solaris 5.8 system, perhaps using mailx or sendmail. My purpose is to stay clear of systems name in head data. So i want to strip at least the "Message-Id" and the "Recieved" headers of the mail. Yet this seems to be a bit of a problem. Now i... (2 Replies)
Discussion started by: congo
2 Replies

9. UNIX for Dummies Questions & Answers

Postfix Problem under mailx/sendmail command

Update: Problem solved with this command: /opt/soc/bin/postfix-setup ================================ Hi, I am trying the following mailx command: sadm@edwardwi-z:/etc$ mailx ewijaya@gmail.com Subject: test foo . . EOT But it gives the following error ... (0 Replies)
Discussion started by: monkfan
0 Replies

10. UNIX for Dummies Questions & Answers

EXIT STATUS on mailx/sendmail

Hi there I am using mailx command to send mails. I want to send some important files to team members and wud like to know if the team member has recd my email or not. How can I achieve this ? Currently my piece of code is uuencode ${FILE_NAME} ${FILE_NAME} >> mail_msg.txt mailx -s"test... (5 Replies)
Discussion started by: Amruta Pitkar
5 Replies
Login or Register to Ask a Question