Sponsored Content
Operating Systems Linux Red Hat Delay in sending email to-from localhost in Sendmail Post 302660705 by Rohit Bhanot on Saturday 23rd of June 2012 12:15:40 AM
Old 06-23-2012
Delay in sending email to-from localhost in Sendmail

Hi Friends,

I am very much new to sendmail or any other mta. I just installed sendmail 8.14 on my rhel6 machine. I was trying to send email to local user but after entering the message when i press CTRL-D it simply hangs. I also tried sending email via mutt but again mutt also hangs. It sends the email but after taking a quite a long time like 2-3 minutes.

Here are the logs confirming that delay

Code:
Jun 22 21:03:07 test sendmail[2119]: q5N133lp002119: from=rohit, size=9, class=0, nrcpts=1, msgid=<201206230103.q5N133lp002119@test.home.com>, relay=root@localhost
Jun 22 21:05:55 test sm-mta[2120]: q5N137CR002120: from=<rohit@test.home.com>, size=263, class=0, nrcpts=1, msgid=<201206230103.q5N133lp002119@test.home.com>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jun 22 21:05:55 test sendmail[2119]: q5N133lp002119: to=stu, ctladdr=rohit (502/505), delay=00:02:52, xdelay=00:02:48, mailer=relay, pri=30009, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (q5N137CR002120 Message accepted for delivery)
Jun 22 21:05:55 test sm-mta[2220]: q5N137CR002120: to=<stu@test.home.com>, ctladdr=<rohit@test.home.com> (502/505), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30449, dsn=2.0.0, stat=Sent

So could any one suggest what could be the issue. IPTables is not running on the system.

Thanks in advance
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Sendmail retries sending to non-existant users

How can i get sendmail to immediately bounce mail when the server on the other side gives a "550 unknown user" SMTP error? Currently, the outbound mail stays in the queue and is retried until our server gives up, some days later. (0 Replies)
Discussion started by: vertigo23
0 Replies

2. UNIX for Advanced & Expert Users

Sendmail problems -- with sending mail

Hello, I am C. and I would like to send mail with Sendmail to my hotmail-account. But this doesn't work, the mail always returns in the file: /var/spool/mail/root. Probably there is something wrong with my SmartHost. I configured it like: define ( 'SMART_HOST','smtp.direct-adsl.be') -->... (1 Reply)
Discussion started by: caroline
1 Replies

3. Red Hat

Set up Sendmail as sending only server

I have set up where my primary fibre optical WAN access does not have any sending SMTP service but my fall-back ADSL service does. However, with most Internet Service Providers, the SMTP service access is "locked" to the IP addresses that the service knows about. Therefore I can not send SMTP... (0 Replies)
Discussion started by: smlunatick
0 Replies

4. Shell Programming and Scripting

Problem in sending inline html with an attachment using sendmail

MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=border --border Content-Type: text/html Content-Disposition: inline <html><body><h2>This text should be displayed with html formatting</h2></body></html> --border Content-Type: text/plain Content-Disposition: attachment This text... (2 Replies)
Discussion started by: thulasidharan2k
2 Replies

5. Shell Programming and Scripting

Using top command to email if process is exceeding 25% and sending an email alert if so

This is my first time writing a script and Im having some trouble, Im trying to use the top command to monitor processes and the amount of CPU usage they require, my aim is to get an email if a process takes over a certain percentage of CPU usage I tried grep Obviosly that hasnt worked, Any... (8 Replies)
Discussion started by: jay02
8 Replies

6. UNIX and Linux Applications

I can't get sendmail to stop considering itself as localhost.localdomain

Hi, I am tearing my hair out, here. We have a CentOS 4.7 box running sendmail 8.13.1. I can't send e-mail out from that box to anywhere not on localhost, as I keep getting the error 'DSN Data Format error', and 'A real domain name is required to send e-mail'. I have edited the... (3 Replies)
Discussion started by: davidm123SED
3 Replies

7. Shell Programming and Scripting

Sending attachment using sendmail command

Send_Mail() { C_Date=`date +"%m/%d/%Y"` #Subject="MMDB Load Job Status" for i in `cat $Metafile` do if then email_address=`echo $i | cut -d":" -f2` /usr/lib/sendmail "$email_address" < $Email_File fi done } this is the send mail command i am using .please let me... (1 Reply)
Discussion started by: Alok K Yadav
1 Replies

8. Shell Programming and Scripting

Sending formatted email with sendmail question

Hi All, Can anyone help with an email formatting question: Im using the following example to try and send a formatted email: outputFile="file.txt" ( echo "From: oracle@inovis.com" echo "To: john.dickinson@gxs.com" echo "MIME-Version: 1.0" echo "Subject: Test Font" echo... (4 Replies)
Discussion started by: jonnyd
4 Replies

9. UNIX and Linux Applications

Sendmail delay: 3 mins 11 secs... Every time.

Hi all, I would like some help with a sendmail problem: We have a new system comprising of 4 T7-1 servers, each hosting 5 LDOMs, all domains running Solaris 11.3 All emails sent from every one of these domains (including the control domains) sit in the queue for 3 mins 11 secs (sometime 3m 12s,... (11 Replies)
Discussion started by: Mysturji
11 Replies
aliases(4)						     Kernel Interfaces Manual							aliases(4)

NAME
aliases - Contains alias definitions for the sendmail program SYNOPSIS
/var/adm/sendmail/aliases DESCRIPTION
By default, the aliases file contains the required aliases for the sendmail program. Do not delete these defaults because they are needed by the system. This file describes user ID aliases used by the sendmail command. It is formatted as a series of lines in the form: name: name_1, name_2, name_3,.. The name is the name that needs an alias, and the name_n are the aliases for that name. Lines beginning with white space are continuation lines. Lines beginning with a # (number sign) are comments. You can define an alias only on local names. Duplicate addresses are removed and no message is sent to any person more than once. For example, if name_1 defines an alias that is name_2 and name_2 defines an alias that is name_1, sendmail does not send the same message back and forth. Local and valid recipients who have a .forward file in their home directory have messages forwarded to the list of users defined in that file. This is only the raw data file; the actual information that defines the aliases is placed into a binary format in the files /var/adm/send- mail/aliases.dir and /var/adm/sendmail/aliases.pag using the newaliases command. For the change to take effect, the newaliases command must be executed each time the aliases file is changed. The sendmail program also supports sending messages to programs or appending a message to a file. See the sendmail(8) reference page for further information. Special Aliases Directs error messages that occur when sending to aliasname back to address. RESTRICTIONS
Aliases for sendmail use the dbm(3) database format for faster lookups. A single alias cannot exceed 1,000 characters. To work around this restriction, you can chain together aliases. For example: alias-list: ali1, ali2, ali3 ali1: name 1, name 2 ... ali2: name n, name n + 1 FILES
Binary aliases file. Binary aliases file. RELATED INFORMATION
Commands: newaliases(1), forward(4), local.users(4), sendmail(8) delim off aliases(4)
All times are GMT -4. The time now is 01:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy