Sendmail on AIX adding header rewrite


 
Thread Tools Search this Thread
Operating Systems AIX Sendmail on AIX adding header rewrite
# 1  
Old 10-02-2012
[Solved] Sendmail on AIX adding header rewrite

Hi,

I have been having issues with sendmail service on the AIX server recently with header rewrite on few random email generated from the scripts or programs.

I'm not sure what is causing as rest of the emails from the sever is generating correctly?

AIX Server --> GATEWAY SERVER(Serv2smtp)
user@host.com--> user@Serv2smtp.com.au Queues up n goes in loop with error

user@host.com ---> user@host.com Works

Since the gateway cannot authenticate the user it goes in a queue and keeps sending a message as below after every few hours.

Code:
Your message 
    From:    ####@####.net
    Subject: 
 
 Has been delayed for some or all of the intended recipients. 
 
 The recipients that were affected are:
     test@###smtp
 
 Your message was received 09:01:49 Mon, 01 October 2012.
 The mail system will keep trying to deliver your message for another 
 43 hours 44 minutes.
 
 Additional Information
 ======================
 Original Sender:    <######@##.net>
 Sender-MTA:         <###########>
 Reporting-MTA:      <mail.######.com.au>
 MessageName:        <B5068cf5d0000..#######000000000001.0001.mml>

Tested the server using the telnet command and it works
mail -v -s "TEST" user@host.com ----works

Can someone please help me what file to check and where is it doing the rewrite or erroring it out.

Thanks in advance.

Mus

Moderator's Comments:
Mod Comment edit by bakunin: Please view this code tag video for how to use code tags when posting code and data.

Last edited by bakunin; 10-02-2012 at 07:04 AM..
# 2  
Old 10-02-2012
Quote:
Originally Posted by musu1982
Can someone please help me what file to check and where is it doing the rewrite or erroring it out.
It looks like you haven't configured your sendmail at all.

The configuration file is "/etc/sendmail.cf" and you can edit it with any regular text editor. There are ample configuration examples on the net on how to basically configure AIX sendmail. I googled for "aix sendmail basic configuration" and got a ton of hits which probably cover any requirement you have.

If you still have a problem achieving a certain requirement please report back stating exactly what you want to achieve.

I hope this helps.

bakunin
# 3  
Old 10-02-2012
SENDMAIL.CF

Hi Bakunin,

Thanks for the quick reply.
I believe sendmail.cf is configured properly as it works fine most of the time, but at times it rewrites the header with the domain name of the gateway server (user@doman.com.au) --> (user@smtp.com.au) which I am not sure what parameter in the sendmail.cf config does it.
On changing name it can't recognise the user and goes it a queue erroring it out.

# "Smart" relay host (may be null)
DSmailserver.domain.com

Is there a way to test if the server is rewriting any header information and what parameter is causing it?
I just want to direct the mail to the smtp server.

Regards,

Mus
# 4  
Old 10-04-2012
the address rewriting is done with a genericstable for example,


Code:
FEATURE(genericstable, `hash -o /etc/mail/genericstable')

in the mc file

other method is masquerading:

Code:
FEATURE(masquerade_entire_domain)
FEATURE(masquerade_envelope)
MASQUERADE_AS(`external.domain')
MASQUERADE_DOMAIN(`hostname.domain.local')

this can be used to let local users send mails with a valid email address for example


this is not from the .cf file, since the cf file is generated with the /usr/ccs/bin/make command out of the .mc file


in the .cf file you can search for the string genericstable or masquerade

cheers funksen
# 5  
Old 10-17-2012
Sendmail issue

Thanks for all the support I have fixed it.

Cheers

Mus
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help in adding header of a file

Hi All , I have a pipe dilimited file .Sample file is below.I need to add header in that file through unix. 000001| 1|AQWWW|234,456.00 | | 123456| |41|abC| 0|xyZ| 000002| 2|11 4|1,234,456.99| | 0| |23| |99|! | 000003| 3|!!@#$|0,000,001.10| | ... (4 Replies)
Discussion started by: STCET22
4 Replies

2. Shell Programming and Scripting

Sendmail with header and footer logo in HTML body

Hello, I need help with my script that will send email via sendmail command that will shows both the header and footer logo once the recepient receive the email (e.g. MS Outlook). When I tested to ran the script it will successfully send the email BUT UNFORTUNATELY it doesn't displayed the... (8 Replies)
Discussion started by: lawrence88
8 Replies

3. UNIX for Advanced & Expert Users

Sendmail Rewrite Ruleset

Hi all, I like to write a rule which do the following: INPUT ADDRESS REWRITTEN TO ----------------------------- ----------------------------- foo.bar@sub.domain.com bar@domain.com foo@othersub.domain.com ... (1 Reply)
Discussion started by: bashily
1 Replies

4. Shell Programming and Scripting

adding header in a file

Hi team, In my script i am storing some value in a variable "header". I want to add the header value has header in a file. Please help me on this Thanks in advance, Baski (4 Replies)
Discussion started by: baskivs
4 Replies

5. Shell Programming and Scripting

Rename a header column by adding another column entry to the header column name URGENT!!

Hi All, I have a file example.csv which looks like this GrpID,TargetID,Signal,Avg_Num CSCH74_1_1,2007,61,256 CSCH74_1_1,212007,647,679 CSCH74_1_1,12007,3,32 CSCH74_1_1,207,299,777 I want the output as GrpID,TragetID,Signal-CSCH74_1_1,Avg_Num CSCH74_1_1,2007,61,256... (4 Replies)
Discussion started by: Vavad
4 Replies

6. Solaris

How to force Sendmail to Rewrite Sender Address?

Need to change sender email id from applmgr@<hostname>.<domain-name> to applmgr@domain-name. Understand we can change in the sendmail.cf where $j is the hostname.domain-name.. can anyone show the exact value to change? Thank you. (8 Replies)
Discussion started by: KhawHL
8 Replies

7. Shell Programming and Scripting

Adding header once every 5 lines

Hi, I need a help in creating a report file. The input file is like this 1 A 2 B 3 V 4 X 5 m 6 O 7 X 8 p 9 a 10 X There is a header which i have to print & save the result as a output file. The header has multiple lines on is like say: New New S.No Name (15 Replies)
Discussion started by: aravindan
15 Replies

8. UNIX for Dummies Questions & Answers

Changing email header information by tweaking sendmail

How can i tweak sendmail configuration files so that the "Received:" field is removed from email header information? Or else can i change Received: (from enswitch@localhost) in email header to something likeReceived: (from xyz@localhost)? ---------- Post updated at 09:57 PM ---------- Previous... (2 Replies)
Discussion started by: proactiveaditya
2 Replies

9. UNIX for Advanced & Expert Users

sendmail header obscuring

hello, I have lots of mail clients, with private IPs, sending mail through our mail server. In the header of each mail outgoing I can find something like Received: from () by linux-virtua1.localhost (8.13.8/8.13.8/SuSE Linux 0.8) ... question is: is there any way to avoid the private... (2 Replies)
Discussion started by: neutrino
2 Replies

10. UNIX for Advanced & Expert Users

Recieved: Header help for sendmail

I have a mailing list that I am working with, I maintain, and host my own server. That includes the smtp server using sendmail. I'm running php, and apache. My problem is that my base of subscribers, are from a university as the list is for an organization within the university. That university... (0 Replies)
Discussion started by: rkf45144
0 Replies
Login or Register to Ask a Question