Sponsored Content
Full Discussion: Sendmail Issue.
Operating Systems Linux Red Hat Sendmail Issue. Post 302442004 by Hari_Ganesh on Tuesday 3rd of August 2010 07:32:33 AM
Old 08-03-2010
Sendmail Issue.

Hi Gurus,

I have been tampering around with sendmail for the past one week and seem to make little progress. Given below is an abstract of the issue.

I have a Fedora 12 server(A VM on vitual Box bridged with a Windows XP host) which has to act as a SMTP server and have accordingly put up the loopback address[127.0.0.1] as SMTP relay.[I have also started the sendmail service.]

Code:
[root@localhost ~]# grep -i MTA /etc/mail/submit.cf
#D{sendmailMTACluster}$m
D{MTAHost}[127.0.0.1]
O DaemonPortOptions=Name=NoMTA, Addr=127.0.0.1, M=E
R$* < @ $+ > $*         $#relay $@ ${MTAHost} $: $1 < @ $2 > $3
R$+ :: $+               $#relay $@ ${MTAHost} $: $1 :: $2
R$*                     $#relay $@ ${MTAHost} $: $1 < @ $j >


The server is in my office LAN.

When i send a mail the output is as below:

Code:
[root@localhost ~]# mail -v tohariganesh@gmail.com
Subject: Test 300
EOT
Null message body; hope that's ok
tohariganesh@gmail.com... Connecting to [127.0.0.1] via relay...
220 localhost.localdomain ESMTP Sendmail 8.14.4/8.14.4; Tue, 3 Aug 2010 20:10:19 +0530
>>> EHLO localhost.localdomain
250-localhost.localdomain Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> MAIL From:<root@localhost.localdomain> SIZE=231
250 2.1.0 <root@localhost.localdomain>... Sender ok
>>> RCPT To:<tohariganesh@gmail.com>
>>> DATA
250 2.1.5 <tohariganesh@gmail.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 o73EeJes001317 Message accepted for delivery
tohariganesh@gmail.com... Sent (o73EeJes001317 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 localhost.localdomain closing connection

The /var/spool/mqueue show the mail as delivered and queued.

Code:
-rw-------. 1 root smmsp    2 2010-08-03 20:10 dfo73EeJes001317
-rw-------. 1 root smmsp 1131 2010-08-03 20:10 qfo73EeJes001317
[root@localhost mqueue]#

But i am not receiving the emails in my inbox.[Have checked spam/junk also]

I checked in google and was asked to put the below entries in sendmail.mc and compile the macro again.

Code:
define(`RELAY_MAILER_ARGS', `TCP $h 2525')
define(`ESMTP_MAILER_ARGS', `TCP $h 2525')

The above entry has also not solved the issue.

Please let me know what the issue could be.Any help is greatly appreciated.

Thanks
HG

---------- Post updated at 05:02 PM ---------- Previous update was at 02:51 PM ----------

Gurus

I need to add this also:
If i view the contents of queued file,i get the error "MDeferred: Connection refused by alt4.gmail-smtp-in.l.google.com."

Why is gmail refusing to accept?


Code:
[root@localhost mqueue]# cat qfo73EeJes001317
V8
T1280846420
K1280851305
N3
P300494
I253/0/470
MDeferred: Connection refused by alt4.gmail-smtp-in.l.google.com.
Fbs
$_localhost [127.0.0.1]
$rESMTP
$slocalhost.localdomain
${daemon_flags}
${if_addr}127.0.0.1
S<root@localhost.localdomain>
MDeferred: Connection refused by alt4.gmail-smtp-in.l.google.com.
rRFC822; tohariganesh@gmail.com
RPFD:<tohariganesh@gmail.com>
H?P?Return-Path: <g>
H??Received: from localhost.localdomain (localhost [127.0.0.1])
        by localhost.localdomain (8.14.4/8.14.4) with ESMTP id o73EeJes001317
        for <tohariganesh@gmail.com>; Tue, 3 Aug 2010 20:10:20 +0530
H?x?Full-Name: root
H??Received: (from root@localhost)
        by localhost.localdomain (8.14.4/8.14.4/Submit) id o73EeJb8001315
        for tohariganesh@gmail.com; Tue, 3 Aug 2010 20:10:19 +0530
H??From: root <root@localhost.localdomain>
H??Message-Id: <201008031440.o73EeJb8001315@localhost.localdomain>
H??Date: Tue, 03 Aug 2010 20:10:19 +0530
H??To: tohariganesh@gmail.com
H??Subject: Test 300
H??User-Agent: Heirloom mailx 12.4 7/29/08
H??MIME-Version: 1.0
H??Content-Type: text/plain; charset=us-ascii
H??Content-Transfer-Encoding: quoted-printable
.

Thanks
HG
 

10 More Discussions You Might Find Interesting

1. Linux

Sendmail issue

Hi gurus! I need help to make sendmail to accept unknown user mail. That is if the user does not exist sendmail keep on processing the mail and store it in a some mailbox ... Thanks for any idea! (5 Replies)
Discussion started by: andryk
5 Replies

2. Solaris

sendmail issue

Hi, yesterday I had issues, sendmail was not responding quickly while sending email and users did not receive any email, This happened with sendmail on solaris 10 and also with sendmail on a linux box. Found it is something to do with DNS blacklists, following lists did not work for me,... (2 Replies)
Discussion started by: upengan78
2 Replies

3. UNIX for Dummies Questions & Answers

Issue with sendmail

Hi Team, I have a script written to sendmail along with attachment in html format. The code is export MAILFROM="abc@abc.com" export MAILTO="abc@abc.com" export CONTENT="./GRP_SPI_ERR.html" export SUBJECT="TEST EMAIL: TESTING HTML" { print - "From: $MAILFROM" print - "To: ${MAILTO}"... (3 Replies)
Discussion started by: Vinaykumar1
3 Replies

4. Solaris

Sendmail Issue

Hi, Guru i had configure in my two server to send out the email. One of the server able to send in the reasonable timing. but another not, it delay almost one day or two days but mostly not send at all. below is the syslog when i try to send out the mail. GOOD Server Dec 28 11:29:39... (5 Replies)
Discussion started by: SmartAntz
5 Replies

5. Solaris

Sendmail issue

Hi all, we are using solaris 10. we need to increase every users mail boxes size as all users mail boxes got filled..Please help..its urgent.. Thanks in advance.. (1 Reply)
Discussion started by: bpsunadm
1 Replies

6. AIX

Sendmail issue

My aix boxes have the port 25 listening and I want to bock that. But before that I want to check the recent logs of the sendmail activity and any open sockets using the port. Please advise. (1 Reply)
Discussion started by: ranasarkar
1 Replies

7. Red Hat

Sendmail issue

Hi Every One, one of our server configuration on sendmail config we are using SMAR_HOST ### define(`SMART_HOST', 'mail.xxx.com') and /etc/sysconfig/sednmail DAEMON is setted to NO so let me know why sendmail is not working for this server any this else u need please do let me know (0 Replies)
Discussion started by: venikathir
0 Replies

8. UNIX for Advanced & Expert Users

Sendmail issue

One of the applications sends mail to the users on daily basis. It sends mail within (internal users) the firewall (e.g., username@companyname.com) and not sending mail outside (external users) the firewall (e.g., username@yyyy.com). When we contacted the admin people they informed us to register... (5 Replies)
Discussion started by: abuibi
5 Replies

9. Emergency UNIX and Linux Support

Sendmail issue

Hi, I'm using sendmail version 8.13.8-8.1.el5_7. I'm pretty new to it. The servera are running RHEL 5.8. My question basically is that I would want to know is there a way to change the from address. I would be able to change it using the return address in mailx command. However I would like to... (3 Replies)
Discussion started by: maverick_here
3 Replies

10. Red Hat

Sendmail issue

Dear All , I have some problem in Sendmail , where it was sending mails perfectly fine with the Ip address of the client machine. But suddenly there was an issue , the SMTP takes the IP of the bond1 interface. So the IP could not get validated in the relay server. So how should i send... (1 Reply)
Discussion started by: jegaraman
1 Replies
All times are GMT -4. The time now is 11:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy