03-06-2013
Assuming that the mail tool that users have is not on the unix server, have you got anything in the outgoing mail queue? Many servers have a
mailq command to display this.
There are a few configuration things to check:-
- Have you defined an onward mail server or relay host?
- Can you resolve the name of the mail server?
- Can you open the SMTP port to the mail server?
- Is there any filtering done further down the line?
Let us consider each in turn.
- Have you defined an onward mail server or relay host?
If you can find your sendmail configuration file (probably sendmail.cf in or under /etc or /etc/sendmail) is there a line that reads DSrelay_server.mycompany.com? You use this to define the next mail server to be able to direct this towards users. There is probably a commented line to remove the leading hash from. There is no space after the DS before you declare your relay server.
- Can you resolve the name of the mail server?
Simply, can you lookup the mail server name you have declared. Use nslookup or host
- Can you open the SMTP port to the mail server?
If you type telnet relay_server.mycompany.com 25 do you get a response? You may need to press ENTER again. After a few seconds, perhaps the command helo will return you an OK response. Type quit to get out again.
- Is there any filtering done further down the line?
Well, if you have got this far, then you can be happy that you are sending the main out from your server. You need to then use whatever mail tracing tools there are on the defined mail server.
I know that this is different on Linux as I'm fighting with RHEL6 at the moment trying to work out what/where to set things up. If i find out, I will post again, but in the meantime, I hope that this helps.
Robin
Liverpool/Blackburn
UK
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I run UNIX and PHP
I use a forum (ibf)
and the mail() function from PHP only allows emails to be sent to an email account that is on my server, so IT doesn't send any emails for example to eden@hotmail.com
How can I fix this?
I have to edit php.ini???'
Please help me
Thanks. (3 Replies)
Discussion started by: eden2
3 Replies
2. UNIX for Advanced & Expert Users
Hi,
I have some problem with sendmail daemon.
Earlier it was working fine as I used to get alert mail through crontab jobs.
Two days back it stopped sending alert messages.
When I executed mail command from shell prompt, I could read all the pending messages, generated through crontab... (1 Reply)
Discussion started by: amit_sapre
1 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
I am new to this forums, so please be kind to me :)
Anyways, I have this problem when I am trying to send out email using sendmail.
I can send an email to gmail.com or other email host, but when I am trying to send an email to email address removed by moderator or anything to the... (2 Replies)
Discussion started by: iluvhk
2 Replies
4. Red Hat
Hi everyone...
i'm trying to send mail with attachment using /usr/sbin/sendmail
and from some reason it's not working for me only from one computer.
the command i'm using is:
cat /etc/fstab | /usr/sbin/sendmail -t RECIPIENT@MAIL.COM
am i doing something wrong?
p.s. the OS is RedHat. (6 Replies)
Discussion started by: eliraza6
6 Replies
5. UNIX for Dummies Questions & Answers
I have a user who's email comes out looking like this:
From name@domain.com Wed Aug 6 15:36:39 2008
Return-Path: <name@domain.com>
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on it2
X-Spam-Level: *
X-Spam-Status: No, score=1.5 required=5.0 tests=AWL,BAYES_20,MISSING_SUBJECT,... (1 Reply)
Discussion started by: photon
1 Replies
6. AIX
I get the following error while trying to send mail from my AIX box. I have cross checked the sendmail.cf file of this system with a working system (similar h/w and o/s) and found no difference. can somebody sugget??
/etc/sendmail.cf: line 98: readcf: map arith: class arith is not available... (1 Reply)
Discussion started by: gsabarinath
1 Replies
7. Linux
I am trying to send mail from my CentOS server.
I have made nacessory changes required from sendmail.
But it is not working.
I am getting following messages in maillog-
Dec 17 09:25:12 localhost sendmail: mBH3tCTi016891: fps.company.com did not issue MAIL/EXPN/VRFY/ETRN during... (1 Reply)
Discussion started by: kailas.awchar
1 Replies
8. Solaris
Hi,
when i am trying to send more than 50000 emails by using solaris sendmail utility, server is getting hanged up, needs to restart it once again. but it is sending nearly 20000 emails with out any issues. So what the configuration changes i need to make for the solaris sendmail utility to... (0 Replies)
Discussion started by: anilmanepu
0 Replies
9. AIX
Hi there,
I have configured sendmail in AIX 6.1 and able to send emails to most of the domains like yahoo and gmail. But certain domains are denying to verify my domain probably due to the masquarding not happening correctly. Following are some logs of sendmail command.... (9 Replies)
Discussion started by: sraj142
9 Replies
10. HP-UX
Hi experts,
I am facing unique issue while sending mails from HP-UX box.
Mails are not delivered to mail addresses outside my company domain.
For e.g.
echo "hi" |mailx -s "test" myemail@mycomapny.com is working fine and delivering mails to my company mail address.
but
If... (7 Replies)
Discussion started by: sai_2507
7 Replies
SMRSH(8) System Manager's Manual SMRSH(8)
NAME
smrsh - restricted shell for sendmail
SYNOPSIS
smrsh -c command
DESCRIPTION
The smrsh program is intended as a replacement for sh for use in the ``prog'' mailer in sendmail(8) configuration files. It sharply limits
the commands that can be run using the ``|program'' syntax of sendmail in order to improve the over all security of your system. Briefly,
even if a ``bad guy'' can get sendmail to run a program without going through an alias or forward file, smrsh limits the set of programs
that he or she can execute.
Briefly, smrsh limits programs to be in a single directory, by default /usr/lib/sendmail.d/bin/ allowing the system administrator to choose
the set of acceptable commands, and to the shell builtin commands ``exec'', ``exit'', and ``echo''. It also rejects any commands with the
characters ``', `<', `>', `;', `$', `(', `)', `
' (carriage return), or `
' (newline) on the command line to prevent ``end run'' attacks.
It allows ``||'' and ``&&'' to enable commands like: ``"|exec /usr/local/bin/filter || exit 75"''
Initial pathnames on programs are stripped, so forwarding to ``/usr/bin/vacation'', ``/usr/bin/vacation'', ``/home/server/mydir/bin/vaca-
tion'', and ``vacation'' all actually forward to `/usr/lib/sendmail.d/bin/vacation''.
System administrators should be conservative about populating the /usr/lib/sendmail.d/bin/ directory. For example, a reasonable additions
is vacation(1), and the like. No matter how brow-beaten you may be, never include any shell or shell-like program (such as perl(1)) in the
/usr/lib/sendmail.d/bin/ directory. Note that this does not restrict the use of shell or perl scripts in the /usr/lib/sendmail.d/bin/
directory (using the ``#!'' syntax); it simply disallows execution of arbitrary programs. Also, including mail filtering programs such as
procmail(1) is a very bad idea. procmail(1) allows users to run arbitrary programs in their procmailrc(5).
COMPILATION
Compilation should be trivial on most systems. You may need to use -DSMRSH_PATH="path" to adjust the default search path (defaults to
``/bin:/usr/bin'') and/or -DSMRSH_CMDDIR="dir" to change the default program directory (defaults to ``/usr/lib/sendmail.d/bin/'').
FILES
/usr/lib/sendmail.d/bin/ - default directory for restricted programs on SuSE Linux
SEE ALSO
sendmail(8)
$Date: 2004/08/06 03:55:35 $ SMRSH(8)