Visit Our UNIX and Linux User Community

Sendmail issue

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Sendmail issue
# 1  
Old 03-14-2012
Sendmail issue

One of the applications sends mail to the users on daily basis. It sends mail within (internal users) the firewall (e.g., and not sending mail outside (external users) the firewall (e.g., When we contacted the admin people they informed us to register in SMTP, We registered it but still it is not sending mail to the external users. We have hardcoded the from address in the Perl script but when we checked the log it shows the group id of the application. We don't understand why it's taking the group id instead of the from id which we have hardcoded in the script. I understand that something needs to be changed in the file but I don't have access to do that. Can anyone please give me some suggestion for this issue? Please let me know what needs to be changed so that I can talk to the admin people about this or even correct me if am in the wrong path. Thanks in advance.

Last edited by Corona688; 03-14-2012 at 01:43 PM..
# 2  
Old 03-14-2012
A firewall only sees packets -- ports and IP addresses, and perhaps system statistics like who generated the packet. It doesn't genuinely understand the content of the packets, and won't know it was an email destined for x.

Can you show an example of the logs you get? And please explain in more detail what your system is and how your firewall and mail servers are configured.
# 3  
Old 03-14-2012
From  Wed Mar  7 01:25:18 2012
Return-Path: <>
Received: from (localhost [])
 by ( with ESMTP id q276PI75008571
 for <>; Wed, 7 Mar 2012 01:25:18 -0500
Received: (from sigma601@localhost)
 by ( id q27601S9022202
 for sigma601; Wed, 7 Mar 2012 01:00:01 -0500
Date: Wed, 7 Mar 2012 01:00:01 -0500
Message-Id: <>
From: (Cron Daemon)
Subject: Cron <sigma601@eccws533> /proj/6-sigma/www/batch/
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/proj/6-sigma>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=sigma601>

This is the log

---------- Post updated at 10:24 PM ---------- Previous update was at 10:23 PM ----------

We dont have access to the configuration file. So have no idea about the configuration part

---------- Post updated at 10:27 PM ---------- Previous update was at 10:24 PM ----------

The from address we have given as but if you see the log it is taking the groupid which is sigma601 and with the server name appended after @ sign

Last edited by methyl; 03-14-2012 at 02:25 PM.. Reason: please use code tags
# 4  
Old 03-14-2012
The "log" posted looks like an actual internal mailbox on the same server which sent the mail. Where did you find it? The mail came from local unix account sigma601 and was sent to the same account.
Just changing the "from" text in sendmail will not change the underlying email address but it can influence the way it is displayed in a mail reader. Masqureading an email address is a bit more complicated.

Do you have a external email relay server? If so, your local sendmail configuration will need to point non-local email to that server (the "DS" line in if it does not already do this.

Ps. What does "register in SMTP" mean in the context of your site?
# 5  
Old 03-14-2012
Set the smart mail host in sendmail to the same ip/FQDN as your outbound server for email you send from your desktop.
Sendmail also requires a functional DNS.
# 6  
Old 03-24-2012
Another problem you may have: Determine if remote client access is disabled. If the sendmail daemon process – sendmail -bd – is running with the “-C /etc/mail/” parameter, then remote client access is disabled.

ps -ef | grep sendmail

Set sendmail’s config/local_only property to false
svcs sendmail
online 10:51:43 svc:/network/smtp:sendmail

svccfg -s /network/smtp:sendmail
svc:/network/smtp:sendmail> listprop config/local_only
config/local_only boolean true
svc:/network/smtp:sendmail> setprop config/local_only=false
svc:/network/smtp:sendmail> listprop config/local_only
config/local_only boolean false
svc:/network/smtp:sendmail> exit

This will not work if remote client access is explicitly disabled in
Restart sendmail
svcadm restart /network/smtp:sendmail
ps -ef | grep sendmail

Previous Thread | Next Thread
Test Your Knowledge in Computers #700
Difficulty: Medium
In the theory of Vernadsky, the noosphere is the fifth in a succession of phases of related to the development of the Earth.
True or False?

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. Red Hat

Sendmail issue

Hi Every One, one of our server configuration on sendmail config we are using SMAR_HOST ### define(`SMART_HOST', '') 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

4. 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

5. Red Hat

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... (8 Replies)
Discussion started by: Hari_Ganesh
8 Replies

6. 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

7. 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

8. 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="" export MAILTO="" 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

9. 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

10. 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

Featured Tech Videos