944,052 Members | Top Members by Rank

Ad:
Nov 17th, 2004
0

Sendmail problem

Expand Post »
Hi all,

I am having a problem with Sendmail on HP-UX. I am using it to relay e-mails from an application to external mail servers.
The problem exists when the remote mail server is slow in its responses. Here is a sample of the SMTP conversation between my application and sendmail, with some comments:

220 myhost.mydomain.gr ESMTP Sendmail 8.11.1/8.11.1; Wed, 17 Nov 2004 13:13:17 +0200 (EET)
EHLO myhost
250-myhost.mydomain.gr Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-EXPN
250-VERB
250-8BITMIME
250-SIZE 4096000
250-DSN
250-ONEX
250-ETRN
250-XUSR
250 HELP

MAIL FROM: user@mydomain.gr
250 2.1.0 user@mydomain.gr... Sender ok
RCPT TO: otheruser@otherdomain.gr
250 2.1.5 otheruser@otherdomain.gr... Recipient ok
DATA
354 Enter mail, end with "." on a line by itself
TEST
TEST
.
=========> Here is where the response is very slow. The thing is that the message has been accepted by sendmail, but because "Message accepted for delivery" has not been received yet, my application thinks that there is some problem, and resends the e-mail (the application has a configurable timeout to wait, which I increased - it solved the problem with most e-mail servers, but not with all of them). This results in multiple e-mails being sent when only 1 was intended to.
250 2.0.0 iAHBDSQ08422 Message accepted for delivery

Does it ring any bells to anyone? Is there any way to have sendmail send the confirmation "message accepted..." so that my application behaves better?

Cheers!
:p
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dimitris is offline Offline
1 posts
since Nov 2004
Nov 17th, 2004
0

Re: Sendmail problem

Hello,

Your version of Sendmail is rather old -- I am running 8.12.8-9.90 on my machine. Granted, sendmail is not something to just run out and patch, but you should consider it, as I think they found big security problems in 8.11

I would start there.

Christian
Team Colleague
Reputation Points: 121
Solved Threads: 57
Posting Virtuoso
kc0arf is offline Offline
1,629 posts
since Mar 2004
Nov 17th, 2004
0

Re: Sendmail problem

this could be a problem with DNS reverse lookups...or it could be a hosts issue...use tcpdump or a packet sniffer for DNS tshooting. For hosts, ensure that your host is linked in your /etc/hosts file (or equivilent).

the way i solved my sendmail the first time was to add 'lookup file bind' in my resolv.conf file (slackware Linux). However, this was only a temporary fix as it slowed again later. Complete resolution did not happen until I installed postfix. Good thing about postfix was it is compatible with just about all sendmail functions so I was rolling right away.
TKS
Reputation Points: 108
Solved Threads: 18
Posting Pro in Training
TKS is offline Offline
470 posts
since Jan 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Applications and Software Forum Timeline: Dhcpd.conf
Next Thread in Linux Applications and Software Forum Timeline: Slack 10.0 and Usbpendrive





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC