Operating System - HP-UX
1837501 Members
3536 Online
110117 Solutions
New Discussion

sendmail / mailx difference

 
hpuxsa
Frequent Advisor

sendmail / mailx difference

I am trying to send mails to our faxmail server. The mails goes through if i use mailx but if i use sendmail it doesn't. The faxmail server accept mails only in some particular format.

The only difference i could see that the mails being sent via mailx had the following in the body in addition to what we input as body.

"Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii"

We are running sendmail 8.9.3.1 (PHNE_25184). OS is 11.11

Could someone tell me how i can make the format for sendmail mails the same as mailx.

Thanks,
steven
3 REPLIES 3
Indira Aramandla
Honored Contributor

Re: sendmail / mailx difference

Hi,

mailx is an interactive message processing system and sendmail sends mail over the internet.

sendmail determines the networks to use based on the syntax and contents of the addresses,according to information in the sendmail configuration file. This file wil, be located at /etc/mail/sendmail.cf.

Check this configuration file for the line under # "Smart" relay host (may be null)


Indira A
Never give up, Keep Trying
hpuxsa
Frequent Advisor

Re: sendmail / mailx difference

The mail which i sent using sendmail is reaching the faxmail server and it is being rejected there because of the format.
Geoff Wild
Honored Contributor

Re: sendmail / mailx difference

From man sendmail:

EightBitMode=mode
Set the handling of 8-bit input to 7-bit
destinations. Mode can be set to the following
values:

m Convert to 7-bit MIME format.
p Pass it as eight bits.
s Bounce the mail.


You can add that to the command line:

-o EightBitMode=7

give that a try...

In sendmail.cf it defaults to:
O EightBitMode=pass8

But I would use it on the command line only.

Rgds...Geoff


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.