Just joined the forum though I have been lurking here for many years now.
Wondering if anyone can help me out with a problem that I'm currently having.
I have a few servers that are relaying all email off of the box to an exchange server. There is a SmartHost configured in sendmail.cf
The problem is, is that it relaying ALL emails, even the emails bound for local users. I have another box which is working correctly and only relaying "external" email. I have checked though and compared the sendmail.cf, submit.cf (not in use), domaintable, access and local-host-names as well as the /etc/hosts and /etc/aliases file and they all appear to be identical in both cases.
I've thought that it could be some issue with the /etc/hosts as on the broken server it has several entries for itself pointing it's own IP address;
IP ADDRESS broken_server.domain.com
On the working Server these entries are not present so I decided to replicate the local IP address entries on the working server in the hope that this would break it in the same fashion. It didn't.
I've been toying with the idea of using the -
and/or the Class L -
.... to try and put a "sticking plaster" on the situation but would like to understand the odd behaviour if possible.
All config files are located in /etc/mail/ but there is no sendmail.cw file. I did a quick google and someone else said that there sendmail.cw file was located under /etc/sendmail.cw so I assumed that might be where it was.
There is no service.switch nor sendmail.cw file located under /etc/mail/ on either of these systems.
I actually exported the files and ran a diff in another system but yes, it's a full diff none-the-less. Obviously they are not identical-identical as the "built-by", "in" & "using" are different but the end result of the compiled sendmail.cf actual configuration is identical in every other respect.
I'm beginning to think that your sendmail is different from ours.
We have a "Class w" which defines the aliases for Local Host. There are two entries Cw (name of local host) and Fw (list of aliases for local host).
Sounds like yours is different.
Multiple entries in /etc/hosts for the hostname of the local machine can confuse sendmail - especially if they are incorrectly placed on different lines in /etc/hosts . Also check that localhost is the first non-comment line in /etc/hosts and that the local hostname is the second non-comment line in /etc/hosts .
Make sure that nslookup for the fully qualified server name returns the correct name as the first name.
Last edited by methyl; 05-04-2012 at 11:13 AM..
Reason: Amend Fw line - its simpler on later versions.
Dear Concern,
As per below article, we have configured qmail in our system.
THE LINUX STUFF: qmail Installation Steps on Linux
But when we try to send any mail in own domain, got below error message. Please advise.
Apr 17 17:01:20 BLAUDITSCPTEST sendmail: alias database /etc/aliases... (0 Replies)
Hi there,
I'm running into a very weird situation. Let's forget about the purpose of my initial script please. I noticed the bug whatever I'm trying to do.
I'm on an old server running bash 3.1.17.
Say we have the following script :
foo:~# cat /tmp/test
#!/bin/bash
f1() {
local... (9 Replies)
Hi,
I have a simple awk script:
BEGIN{}
{
$a=$2-$1;
print $a
}
END{if(NR==0){
print "0"
}
}
to which I provide the following input
2.9 14
22.2 27 (4 Replies)
Environment: SCO Unix Openserver 6
Sendmail ver: 8.11.3
I just put this server online replacing it's old counterpart, same OS on new machine. There are many different servers on this domain, windowssrv.thisdomain.com, oldunix.thisdomain.com, and the new newunix.thisdomain.com just to name a... (2 Replies)
Hello,
I manage a large sendmail server that handles more than 20,000 pieces of mail per day. It's a bit unusual in that all this mail is only being sent to and from 4 local accounts. (It's an automated transaction processing system, whereby users submit a transaction via email attachment). ... (2 Replies)
Greetings To All!
I am running Solaris 10 in a sparc environment.
Here is the deal:
In /var/spool/cron/crontabs, there is a cron user named "sys". If I do a
crontab -l sys, it returns:
# 0 * * * 0-6 /usr/lib/sa/sa1
# 20,40 8-17 * * 1-5 /usr/lib/sa/sa1
# 5 18 * * 1-5 /usr/lib/sa/sa2... (8 Replies)
I have a linux box. Sendmail is work fine in this box. The only problem I am facing is whenever I send mail using the mail command to the outside world or to root@localhost, I get this error -
127.0.0.1 localhost denied from relaying
The command I used to send mail is -
Ls -l | mail -s... (0 Replies)
I have a problem I don't understand... I am trying to declare a variable, and then output the results of that variable, couldn't be simpler
#!/bin/ksh
VAR='Oranges'
if
then
echo "Found Lemons"
elif
then
echo "Found Oranges"
fi
The output shouold clearly be "Found Oranges", but... (2 Replies)
hi there
I've got a strange problem with a webserver box (suse linux 7.2). My MTA is sendmail, and when I tried manually send a mail.
Sendmail -v "user@something" < /etc/hosts
The Server tried
"simon@localhost... Connecting to local..." but nothing happend and the system hold on.
This... (3 Replies)
I've searched this message board, and the newgroups THOROUGHLY, in search of any information towards implenting the MySQL API with C... I'm a "beginner" to the C language I suppose, and i've made a few functions in C that can be implemented into the source code of Sendmail/mail.local, so that any... (2 Replies)