1847027 Members
4437 Online
110258 Solutions
New Discussion

Sendmail problem

 
hangyu2
New Member

Sendmail problem

I use sendmail in my unix-base server , and the server is connected with the mail server , the mail are via the mail server to sendout , but sometimes I found there are two mail will jam togeher , then the mail contain not match with the subject , anyone know what is the probem ? thx
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Sendmail problem

Shalom hangyu2,

Resources:

/var/adm/syslog/mail.log

http://www.sendmail.org

mailq

sendmail -v -d8.99 -d38.99 someone@some.net

type some text

.


I totally do not understand the issue you have presented.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
hangyu2
New Member

Re: Sendmail problem

thx reply,

My problem is simple , the problem is sometimes I found two mail will be mix-up together , so that the user will receive a mail , its mail subject is correct but mail content is another mail . thx
hangyu2
New Member

Re: Sendmail problem

for example ,

the correct mail is

mail 1
subject : aaaa
content : bbbb

mail 2
subject : cccc
content : dddd

but the user will receive the mail 1 :
subject : aaaa
content : dddd

does anyone have similiar experience ? thx

Cem Tugrul
Esteemed Contributor

Re: Sendmail problem

Hangyu2,

i have never seen such a situation as you described.
Could you please try this explanation as below;

1. Mail No attachment, body only -

mailx -m -s "Some Subject" somone@somewhere.com < file_for_email_body

2. Mail with attachement, no body -

ux2dos /path_to/some_file | uuencode some_file.txt | mailx -m -s "MAIL FROM Someone" someone@somewhere.com

3. Mail with attachment and body -

ux2dos /path_to/some_file | uuencode some_file.txt | mailx -m -s "MAIL FROM Someone" someone@somewhere.com < file_for_email_body

4. Mail with carbon and blind carbon -

mailx -m -s "Some Subject" somone@somewhere.com < file_for_email_body

(Note that this does not work with the -r option as it disables ~ commands.)
(The file_for_email_body should look like this - )
~c someone_to_cc@somewhere.com
~b someone_to_bc@somewhere.com
The remainder of this file can be the text body of the email.

5. Mail with multiple attachments and body (Leave out the 'This is all you get' if body not desired) -

mailx -m -s "Hello" someone@somewhere.com << END
`ux2dos /home/dlamar/.kshrc | uuencode /home/dlamar/.kshrc.txt`
`ux2dos /home/dlamar/.profile | uuencode /home/dlamar/.profile.txt`

This is all you get.
END
Our greatest duty in this life is to help others. And please, if you can't