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., 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 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 sendmail.cf 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
Code:
From sigma601@eccws533.dearborn.cn.com  Wed Mar  7 01:25:18 2012
Return-Path: <sigma601@eccws533.dearborn.cn.com>
Received: from eccws533.dearborn.cn.com (localhost [127.0.0.1])
 by eccws533.dearborn.cn.com (8.12.11.20060308/8.12.10/1) with ESMTP id q276PI75008571
 for <sigma601@eccws533.dearborn.cn.com>; Wed, 7 Mar 2012 01:25:18 -0500
Received: (from sigma601@localhost)
 by eccws533.dearborn.cn.com (8.12.11.20060308/8.12.10/Submit) id q27601S9022202
 for sigma601; Wed, 7 Mar 2012 01:00:01 -0500
Date: Wed, 7 Mar 2012 01:00:01 -0500
Message-Id: <201203070600.q27601S9022202@eccws533.dearborn.cn.com>
From: root@eccws533.dearborn.cn.com (Cron Daemon)
To: sigma601@eccws533.dearborn.cn.com
Subject: Cron <sigma601@eccws533> /proj/6-sigma/www/batch/6sigma_batch.sh
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 6sigma@cn.com 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 sendmail.cf) 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/local.cf” parameter, then remote client access is disabled.

ps -ef | grep sendmail

Set sendmail’s config/local_only property to false
svcs sendmail
STATE STIME FMRI
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 sendmail.cf.
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', '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

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="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

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