problem with sendmail, not sending mails to some mail servers like yahoo except gmail
hi this is sasidhar,
we have CentOS5 with default sendmail configuration.
Initially it is sending mails to gmail, yahoo etc. last few days it is
not sending mails to yahoo.
In maillog I observed that for yahoo mails the stat value is deferred.
I tried everything by browsing google but I didn't find any solution
to this problem.
Finally I came here with lots of hope.
In mail queue there are more than 1 lack, most of them yahoo, rediff
etc. For gmail it is not giving any problem every mail is going.
please give any suggestions to solve this problem.
On 11/5/2009 11:36 PM, sasidhar prabhakar wrote:
> hi this is sasidhar,
> we have CentOS5 with default sendmail configuration.
> Initially it is sending mails to gmail, yahoo etc. last few days it is
> not sending mails to yahoo.
> In maillog I observed that for yahoo mails the stat value is deferred.
> I tried everything by browsing google but I didn't find any solution
> to this problem.
> Finally I came here with lots of hope.
> In mail queue there are more than 1 lack, most of them yahoo, rediff
> etc. For gmail it is not giving any problem every mail is going.
> please give any suggestions to solve this problem.
Deferred is generally not a problem. As your queue runs (usually, once
an hour), it will try again (and again, as necessary).
You can force sendmail to run the queue by running it wi...unable to forward mail from 1 sendmail server to another sendmail server
i have a setup like this: box A ---> box B ---> sends to the world.
sendmail, solaris 9.
what is happening is as follows:
Application on box A generates mail (for the users, who can be from
anywhere) forwards it to box B which sends it out.
The box A is forwarding mail to box B, only for the users of the
domain, ie if there is a user is having a gmail id the mail is NOT
forwarded from box A ----> box B.
If i do a nslookup on gmail on box A it resolves properly.
>From MAILER-DAEMON Wed Oct 26 12:14:26 2005
Date: Wed, 26 Oct 2005 12:14:26 +0530 (IST)
From: Mail Delivery Subsystem <MAILER-DAEMON>
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)
This is a MIME-encapsulated message
The original message was received at Wed, 26 Oct 2005 12:14:26 +0530
from localhost [127.0.0.1]
----- The following addresses had permanent fatal errors -----
(reason: 550 Host unknown)
----- Transcript of session follows -----
550 5.1.2 <email@example.com>... Host unknown (Name server:
mailhost.domainame.com: host not found)
Reporting-MTA: dns; www.domainname.com
Received-From-MTA: DNS; localhost
Arrival-Date: Wed, 26 Oct 2005 12:14:26 +0530 (IST)
Final-Recipient: RFC822; amitk...Sending mails to ISP mail server account
I have a local mail server on domain xyz.com. Sendmail configured as
Users are able to send mails to each other. I have also configured
relay-domains to xyz.com so that they are able to send mails to real
Local users are like firstname.lastname@example.org .. upto email@example.com
We also have the mail services from ISP on same domain xyz.com. On ISP
server we have created same account name like firstname.lastname@example.org ... upto
.. My local mail server is fetching mail from ISP mail server &
local user accounts by using fetchmail.
On ISP mail server, we have created few accounts of the users like
email@example.com for mktg personals. These users are not having account on my
local mail server. Now users want to send mail to firstname.lastname@example.org with cc to
email@example.com . Whenever they send mails like this, error comes 'user
I have tried smart relay host option like
# "Smart" relay host (may be null)
but not got success.
Any workaround by which mails to firstname.lastname@example.org will go to ISP mail server
Any pointer will help.
...how to force sendmail to forward mails to another mail server?
Currently we have 2 machines for mail (a smtp server and a pop server)
Currently, sendmail accepts and sends out mail for our domain. We'd
like sendmail to just send out mails but when it receives mails, it
should forward it to our pop server. should we use mailertable for
this or some other method?
thanks for any info
ike lozada schrieb:
> Hi all,
> Currently we have 2 machines for mail (a smtp server and a pop server)
> Currently, sendmail accepts and sends out mail for our domain. We'd
> like sendmail to just send out mails but when it receives mails, ...Sending mail without sendmail or highly secure sendmail
I am setting up a very secure Red Hat Enterprise Linux Advanced Server
version 4 update 6 server. My sendmail version is 8.13.1. My mail
server is a Windows 2003 Server with Exchange 2003 with its patches.
They are both on the same subnet. DNS is on and it will resolve the
mail server's name and IP. SSH, SCP, SFTP, and such tools are the
only networkable protocols on. NFS if off, MOUNTD is off, PORTMAP is
off, and such.
Until just recently sendmail was off on the RHEL server as part of the
hardening procedure. However part of the auditing requirements is for
a mail message to go out to some admin if certain events occur such as
"disk is full," "a panic occurred," "the system rebooted" etc.
So I will perhaps cut sendmail on and mitigate the risk as best as
So, this sounds dumb, but can you send mail without sendmail. I think
perhaps no, but I thought I'd ask anyway.
Secondly does anyone have a harden .mc file from which they could
share what they did? Of course you can fudge in phoney IP and names
to protect your secured environment.
Advice or insight do any of you have on securing sendmail is
appreciated? I want to avoid such things as promiscuous relays,
unqualified senders, etc etc. But if it must be ... it must be. :)
George <email@example.com> wrote:
> I am setting up a very secure Red Hat Enterprise Linux Advanced Server
> version 4 update 6 server. My sendmai...Problem sending mail via sendmail
First off, please forgive me as I am not very familiar with sendmail,
so my question may be worded poorly or the answer may be very obvious.
I am setting up a new mail server running sendmail as the MTA. I am
attempting to configure it so that anyone on our IP block can access it
and send mail via SMTP without a username or password, and to reject
mail from outside sources. Well, I can get it to reject mail, all
right: everything comes back with this error:
An error occurred while sending mail. The mail server responded: 5.7.1
<firstname.lastname@example.org>... Relaying denied. IP name lookup failed
[126.96.36.199]. Please verify that your email address is correct in
your Mail preferences and try again.
(This is the error that Thunderbird gave me when trying to send a
Where can I configure sendmail to allow messages coming from a specific
ip range, in this case 141.161.x.x? Or is this something I would have
to configure in a system file (I am running FreeBSD)? Any and all help
will be greatly appreciated.
Aha. Okay, so I found that using /etc/mail/relay-domains and putting
in just 141.161. works. However, is this really the best way to do
this? I'm not really all that familiar with sednmail and whatnot, but
should I be "relaying" mail coming from addresses on my own network? I
mean, hey, it works, but it just doesn't seem like the way things are
supposed to work.
"Matt Singerman" <matt.s...Cant send mail to my Sendmail Server ?
I use the netstat to get the following information:
tcp 0 0 0.0.0.0:32768 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:32769 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:109 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 ...Can not send mail to my Sendmail Server ?
I set up a sendmail server ( The IP I use is for dummy ):
1. I can email outside from the local host ( by using sendmail -v -t ), up
to this moment,
I just use IP for the Email Server, the DNS Record is not set yet;
2. But I can not reply to the above email address
3. I can not telnet 188.8.131.52 port 110 , nor telnet 184.108.40.206 port
143 from outside, but I can telnet localhost 110, and telnet localhost
I installed the service imapd and ipop3d..
What is the problem and how to solve them ?
The error messages:
Message from ...Best way to send mail from sendmail server?
I've got a sendmail (8.13.4) box primarily relaying from the outside to
a number of inside locations. Problem is, this box also sends mail out
itself, mostly reporting and such. Now any mail it generates is coming
from "user@localhost" which resolves (naturally) to 127.0.0.1. I can add
localhost to the access DB and it works fine, but I'm wondering if this is
really the ideal way of doing things. Is there a way I can rewrite the
sender domain from localhost to domain.com, or even host.domain.com?
Colin B. wrote:
> I've got a sendmail (8.13.4) box primarily relaying from the outside to
> a number of inside locations. Problem is, this box also sends mail out
> itself, mostly reporting and such. Now any mail it generates is coming
> from "user@localhost" which resolves (naturally) to 127.0.0.1. I can add
> localhost to the access DB and it works fine, but I'm wondering if this is
> really the ideal way of doing things. Is there a way I can rewrite the
> sender domain from localhost to domain.com, or even host.domain.com?
Make "hostname --fqdn" report host.domain.com as fully qualified domain name
of "this host".
Andrzej [en:Andrew] Adam Filip email@example.com firstname.lastname@example.org
All that is necessary for the triumph of evil is that good men do nothing
-- Edmund Burke (1729-1797)
Andrzej Adam Filip <email@example.com> wrote:
> Colin B. wrote:
&...Making sendmail work with my ISPs mail server
I am running sendmail on Solaris 9. Normally I use Mozilla to do most of
my email, with mail.charter.net set as the outgoing server (SMTP), but
would like on occassion to use mailx instead. The problem is I can not
get sendmail configured so it will send mail via mail.charter.net. I
have tried 2 or 3 different sets of sendmail.cf changes based on what I
have found using Google, but none of them work. Local mail is fine, but
mail addressed to firstname.lastname@example.org gets sent but never
received. My latest attempt used the following .mc file to create
VERSIONID(`@(#)subsidiary.mc 1.10 (Sun) 12/14/00')
R$* < @ $* .$m. > $* $#esmtp $@ $2.$m $: $1 < @ $2.$m. > $3
I then used mail to send a message to email@example.com but
never received anything.
Any help would be appreciated.
Please disregard my post, as it turns out this last changed worked but
my Mozilla browser got hung up and was not pulling mail down from my
mail server. Sorry!
Jack Morrison wrote:
> I am running sendmail on Solaris 9. Normally I use Mozilla to do most of
> my email, with mail.charter.net set as the outgoing server (SMTP), but
> would like on occassion to use mailx instead. The problem is I can not
> get sendmail configured so it will send mail vi...Sending HTML Mail via sendmail to Outlook 2000
I've been trying to send a html mail from sendmail to outlook 2000.
When I recieve the mail in outlook it is as an attachment. I want the
html mail to be embedded into the body of the mail. Heres what i'm
On a UNIX machine
Subject: This is a test of html email from unix
<b>TEST TEST TEST</b><nr>
</body>...newbie question: sendmail doesn't send mail to external mail account.
It seems send mail doesn't send mail to external mail account in my FreeBSD
4.8 BOX. However, I'm able to receive mail from external mail, such as
yahoo, hotmail account.
My config is:
ISP: bell Sympatico high speed with dynamic IP address.
SMTP port is enabled on the router/firewall.
Can anyone help?
bluesnow#mail -v firstname.lastname@example.org
Subject: This is a test.
Do you hear me?
email@example.com... Connecting to [127.0.0.1] via relay...
220 bluesnow.gotdns.com ESMTP Sendmail 8.12.8p1/8.12.8; Thu, 26 Jun 2003
17:14:51 -0400 (EDT)
>>> EHLO bluesnow.gotdns.com
250-bluesnow.gotdns.com Hello localhost [127.0.0.1], pleased to meet you
>>> MAIL From:<firstname.lastname@example.org> SIZE=68
250 2.1.0 <email@example.com>... Sender ok
>>> RCPT To:<firstname.lastname@example.org>
250 2.1.5 <email@example.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
250 2.0.0 h5QLEpDJ006984 Message accepted for delivery
firstname.lastname@example.org... Sent (h5QLEpDJ006984 Message accepted for delivery)
Closing connection to [127.0.0.1]
221 2.0.0 bluesnow.gotdns.com closing connection
bluesnow# sendmail -bp
/var/spool/mqueue (2 requests)
-----Q-ID----- --Size-- -----Q-Time----...Sendmail authentificates, client cann still send mails with fake "Mail From:" tag
i've just finished my first AUTH sendmail configuration, client cann
authentificate himself via LOGIN/PLAIN with TLS. I've noticed though
that sendmail doesn't pose any restraints regarding the mail from: tag.
lets say my domain is test.de, my loginname ist alex
now i cand send mails from arbitrary name@ test.de...actually from
arbitrary name @ arbitrary domain :)
Am i missing something here ?
what i would like is: user authentificates -> he is allowed to send
mail only with the prior stipulated address (his address)
> i've just finished my first AUTH sendmail configuration, client cann
> authentificate himself via LOGIN/PLAIN with TLS. I've noticed though
> that sendmail doesn't pose any restraints regarding the mail from: tag.
> lets say my domain is test.de, my loginname ist alex
> now i cand send mails from arbitrary name@ test.de...actually from
> arbitrary name @ arbitrary domain :)
> Am i missing something here ?
> what i would like is: user authentificates -> he is allowed to send
> mail only with the prior stipulated address (his address)
This should do exactly what you want.
> ht...sendmail for only sending mail
i want to be able to use sendmail to just send mail from a pipe...
nothing more than that (meaning, no need for handling queue, etc.)
so far, any linux i logged in to could do this by doing:
# /usr/sbin/sendmail email@example.com
.... Type in message using headers etc
and that's it, the message would be sent.
however, in my fresh fedora installation, i cannot make sendmail
terminate... it accepts input from std input, but "." does not send
the message nor does ^D, nothing. i can't find in sendmail.cf a
mention of "termination symbol". any ideas?
(i thought it might be related to some terminate symbol, so i tried:
/usr/sbin/sendmail -t -messagefile=msg.txt
which should send message from a file, but still, i get std input
waiting for input, and unable to terminate except for ^C.)
i am using the fedora distribution by the way.
In article <firstname.lastname@example.org> email@example.com writes:
>i want to be able to use sendmail to just send mail from a pipe...
>nothing more than that (meaning, no need for handling queue, etc.)
>so far, any linux i logged in to could do this by doing:
># /usr/sbin/sendmail firstname.lastname@example.org
>... Type in message using headers etc
>and that's it, the message would be sent.
>however, in my fresh fedora installation, i cannot make sendmail
>terminate... it accepts input from std input, but "...Send e-mail through sendmail upon name server (bind) failing.
Is it possible to send an e-mail through Sendmail using mailtertable.
I'd like to have an e-mail warning sent when Bind fails on this
machine. Unfortunately, the only way to do this is on the host
machine using the mail command and grep the maillog, since it doesn't
blatantly fail, port 53 becomes unavailable, but from what I can tell
sendmail will not function without a properly running dns server?
I thought specifying the ip address in the mailertable to forward the
request to my vtext.com address would be sufficient, but it doesn't
send anything until Bind is running.
...How do I configure sendmail to recognize my SMTP server, so that I can send mail with mutt?
I'm trying to convert to Mutt, but can't get it to send mail. The problem
is how sendmail's set up. How can I point send mail to
naSota@tPampabay.rAr.cMom - > (remove capital letters: SPAM)
...Sendmail delivers mail locally instead of sending it to other domain / Solaris 9
I found a few old postings but they were not very helpful.
Trying to configure Sendmail that came preinstalled with Solaris 9 -
to send messages to my e-mail. Right now it delivers each message
----- The following addresses had permanent fatal errors -----
(reason: 553 5.3.5 system config error)
----- Transcript of session follows -----
553 5.3.5 mailhost config error: mail loops back to me (MX problem?)
554 5.3.5 Local configuration error
The mailhost /etc/hosts is the localbox I am trying to send mail
On Jun 29, 11:46 am, Du...importing mail into sendmail mailbox via pop3 from account on remote server
Newbie here, with what I thought would be an uncomplicated question. Guess
I am moving a friend's domain/site/mail onto my host. DNS and the site and
new mailboxes are created, but I need to migrate his email, which I have POP
access to, into his new sendmail mailbox on my host. His old host uses a
3rd party for mail hosting, and has only black box access to the mailserver.
Although I'm familiar enough with putzing around a Linux box, and I have SSH
to my box, I have not used fetchmail, mutt, pine, or any other command line
tool that might facilitate migrating the contents of a POP3 account straight
into the sendmail, and my host hasn't installed anything either.
I know it is oxymoronic, but does sendmail have this capability? I trolled
some groups, Googled the topic, and skimmed the manual, but no luck. Anyone
written a Python, PHP or Perl script that can do this? I trolled for that
too and couldn't find anything.
Theoretically I supppose it would look like:
[user@account /]$ programtofetchpop3mail pop3=mail.someotherhost.com
user=oldmailbox pass=1234 box=/var/spool/mail/newmailbox
[user@account /]$ programtofetchpop3mail.py/php/pl
pop3=mail.someotherhost.com user=oldmailbox pass=1234
I'd write my own script, but I'm not familiar enough with sendmail files to
not botch the job.
If anyone could help, please email dir...PHP logs not working, and unable to send mail through sendmail via PHP
Hoping someone can help me out with this problem. First problem, is I
am unable to view my php error log. In my php.ini I have my log in
/var/www/logs/php_error_log. However, it has remained empty.
Secondly, my sendmail works fine from command prompt. However, when
trying to send mail through a php script (I have tried a couple), it
says it is succesfull, but my mail logs show nothing going out. No
error messages. Can someone take a look at my snippets below of my
logging and my mail options and suggest some things for me to try
please? Thanks. :)
; About this file ;
; This is the recommended, PHP 4-style version of the php.ini-dist
; sets some non standard settings, that make PHP more efficient, more
; Error handling and logging ;
; error_reporting is a bit-field. Or each number up to get desired
; reporting level
; E_ALL - All errors and warnings
; E_ERROR - fatal run-time errors
; E_WARNING - run-time warnings (non-fatal errors)
; E_PARSE - compile-time parse errors
; E_NOTICE - run-time notices (these are warnings which often
; from a bug in your code, but it's possible that
; intentional (e.g., using an uninitialized
; relying on the fact it's automatically
initia...Sendmail cannot send my mail
I am on a typical home user setup (dialup connection, SMTP server
listens on exotic port 25000 and I need to enter a password to connect
to the server).
The various mailers I have used - outlook, outlook express, mozilla
mail - have no problems sending my mail successfully.
But when I try to use sendmail all I get is something like:
Nov 22 18:56:51 turki sendmail: iAL4OmF22670:
email@example.com, ctladdr=gavron (500/500), delay=1+19:32:03,
xdelay=00:00:10, mailer=relay, pri=815114, relay=b.mx.mailbarn.net.
[220.127.116.11], dsn=4.0.0, stat=Defer
red: Connection refused by b.mx.mailbarn.net.
sendmail proceeds to recycle the mail for the following five days
I have read the FAQs, made countless changes to the sendmail.mc file,
cycled sendmail at least a hundred times over the last couple of
months to no avail.
Since on average successfully setting up a mail account in one of the
above mailers takes under two minutes, I am beginning to suspect that
there is a bug in the version of sendmail I am running - sendmail
version 8.11.4 release 3 as generated by Redhat 7.2 from an rpm.
Is there a short howto describing what the average home user on a
dialup connection should do to make sendmail connect to the outside
world? I was thinking of using this as a checklist to make sure I am
not leaving out anything.
If no such document exists could anyone direct me to sample
configuration files that are known to work in this type of setup with
this particular versi...Sendmail sending firstname.lastname@example.org to my local machine instead of my mail server.
I have a Freebsd machine running Sendmail. Let's call it machine A1.
I am not really using it as a mail server. Just want to send out mails
occasionally. I have another machine which is the real mail server
for my domain - abc.com, let's call this machine B2.
It works when I send out mails to email@example.com or
firstname.lastname@example.org, etc. But when I send out mails to
email@example.com, the mails get sent to itself, i.e. machine A1. And
the maillog shows that the Local mailer was called to send the mail
instead of the ESMTP mailer.
I have other Freebsd machines, and have no problem sending mails to
I've tried everything, including copying all the files in /etc/mail
from my other working Freebsd machines to machine A1, and do a make,
make install, make restart. But machine A1 still calls the local
mailer to deliver mails addressed to @abc.com. Machine A1 is acting
as if it is the mail server for the domain. I don't have
local-domains, local-host-names, files, etc. I just use the original
Can anybody help?
Thank you very much in anticipation.
> Hi All
> I have a Freebsd machine running Sendmail. Let's call it machine A1.
> I am not really using it as a mail server. Just want to send out mails
> occasionally. I have another machine which is the real mail server
> for my domain - abc.com, let's call this machine B2.
> It...Newbie Question
Can we send email without "sendmail" process running in Solaris 10 ? I
know we can do it in Solaris 8 using SMTP via the mail relay host.
We tried it in our Solaris 10 (118833-22) server and received the
following error :
# firstname.lastname@example.org Connecting to [127.0.0.1] via relay...
email@example.com ... Deferred: Connection refused by
Our sendmail version is 8.13.4. Any idea how we can trouble shoot this
In article <firstname.lastname@example.org>,
> Can we send email...Sendmail not sending mails immediately
We've got a Solaris 9 x86 box which sends notification mails and we
would like those mails to be sent immediately. Currently there are
sitting in the queue a few minutes and then they get sent. I didn't
configure anything differently no that box. And sendmail is running as
root 282 1 0 Dec 21 ? 0:01 /usr/lib/sendmail -bd -q15m
smmsp 283 1 0 Dec 21 ? 0:00 /usr/lib/sendmail -Ac -q15m
My question now is: how do I configure sendmail to send immediately mails ?
> root 282 1 0 Dec 21 ? 0:01 /usr/lib/sendmail -bd -q15m
> smmsp 283 1 0 Dec 21 ? 0:00 /usr/lib/sendmail -Ac -q15m
Replace -q15m with -q1s
To contact me remove the "NOSPAM" part from my e-mail address.
I should add that -q1s implies that sendmail will process the mail queue
every single second... so it's unnecessary overhead. I suggest you try
with -q1m so it's once every minute... it's not too bad, but it could
still be too much overhead for your system. Try to find a compromise
between response times and overhead.
I suggest you read the sendmail manual page for further information about
the command line options...
To contact me remove the "NOSPAM" part from my e-mail address.
Syn <syn_NOSPAM_uw@hotmail.com> writes:
>We've got a Solaris 9 x86 box which sends notification mails an...Sendmail refuses to send mail
only recently have I started using sendmail (8.11) on a RedHat 7.1 linux machine.
Up till now I've only been able to receive e-mail (both local and remote).
Sending e-mail to a valid e-mail address stops with a dsn 4.0.0 and "no route to host", even though I can ping the domain in the e-mail address. Traceroute however is unable to come up with an answer.
What do I do wrong? Any place I can find a clear description of what is happening?
Thanks in advance!
--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-
> only recently have I started using sendmail (8.11) on a RedHat 7.1 linux machine.
> Up till now I've only been able to receive e-mail (both local and remote).
> Sending e-mail to a valid e-mail address stops with a dsn 4.0.0 and "no route to host", even though I can ping the domain in the e-mail address. Traceroute however is unable to come up with an answer.
> What do I do wrong? Any place I can find a clear description of what is happening?
Start by posting some log entries from an email that is bouncing. I would also be tempted to think about sniffing the SMTP traffic. However seeing as how the message is being rejected with a 4xx series code, it should still be in a mail queue on your system (presuming that it is the system your server is passing the message off to th...