×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

I can´t send E-mails

I can´t send E-mails

I can´t send E-mails

(OP)
Hi:
I am new in sendmail.
I have a PBX running linux, and uses sendmail to send messages.
I can´t send E-mail by sendmail

list part of maillog:

May 18 16:05:09 demo sendmail[8352]: n4IL594n008352: from=sipxchange, size=1159, class=0, nrcpts=1, msgid=<200905182105.n4IL594n008352@demo.scsmty.com>, relay=sipxchange@localhost
May 18 16:05:09 demo sendmail[8353]: n4IL59G7008353: from=<sipxchange@demo.scsmty.com>, size=1422, class=0, nrcpts=1, msgid=<200905182105.n4IL594n008352@demo.scsmty.com>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
May 18 16:05:09 demo sendmail[8353]: n4IL59G7008353: to=<joseluis.moreno@reynet.com.mx>, delay=00:00:00, mailer=esmtp, pri=31422, dsn=4.4.3, stat=queued
May 18 16:05:09 demo sendmail[8352]: n4IL594n008352: to=joseluis.moreno@reynet.com.mx, ctladdr=sipxchange (502/502), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31159, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (n4IL59G7008353 Message accepted for delivery)
May 18 16:05:25 demo sendmail[2687]: n4IKl6Ij002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:00, xdelay=00:02:00, mailer=esmtp, pri=49693, relay=reynet.com.mx. [200.57.147.13], dsn=4.0.0, stat=Deferred: Connection timed out with reynet.com.mx.
May 18 16:05:40 demo sendmail[2687]: n4IL59G7008353: to=<joseluis.moreno@reynet.com.mx>, ctladdr=<sipxchange@demo.scsmty.com> (502/502), delay=00:00:31, xdelay=00:00:00, mailer=esmtp, pri=121422, relay=mailb.correonegocios.com. [200.57.129.66], dsn=5.0.0, stat=Service unavailable
May 18 16:05:40 demo sendmail[2687]: n4IL59G7008353: n4IKl6Il002687: DSN: Service unavailable
May 18 16:07:40 demo sendmail[2687]: n4IKl6Il002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:00, xdelay=00:02:00, mailer=esmtp, pri=32687, relay=reynet.com.mx. [200.57.147.13], dsn=4.0.0, stat=Deferred: Connection timed out with reynet.com.mx.
May 18 16:07:40 demo sendmail[2687]: n4IKl6Ij002687: to=joseluis.moreno@reynet.com.mx, delay=00:04:15, xdelay=00:00:00, mailer=esmtp, pri=139693, relay=mailb.correonegocios.com., dsn=5.0.0, stat=Service unavailable
May 18 16:07:40 demo sendmail[2687]: n4IKl6Ij002687: n4IKl6Im002687: return to sender: Service unavailable
May 18 16:07:40 demo sendmail[2687]: n4IKl6Im002687: to=joseluis.moreno@reynet.com.mx, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=51785, relay=reynet.com.mx., dsn=4.0.0, stat=Deferred: Connection timed out with reynet.com.mx.
May 18 16:07:55 demo sendmail[2687]: n4IKl6Il002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:15, xdelay=00:00:00, mailer=esmtp, pri=122687, relay=maila.correonegocios.com. [200.57.129.65], dsn=5.0.0, stat=Service unavailable
May 18 16:07:55 demo sendmail[2687]: n4IKl6Il002687: n4IKl6Io002687: return to sender: Service unavailable
May 18 16:09:55 demo sendmail[2687]: n4IKl6Io002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:00, xdelay=00:02:00, mailer=esmtp, pri=34719, relay=reynet.com.mx. [200.57.147.13], dsn=4.0.0, stat=Deferred: Connection timed out with reynet.com.mx.
May 18 16:09:55 demo sendmail[2687]: n4IKl6Im002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:15, xdelay=00:00:00, mailer=esmtp, pri=141785, relay=mailb.correonegocios.com., dsn=5.0.0, stat=Service unavailable
May 18 16:09:55 demo sendmail[2687]: n4IKl6Im002687: n4IKl6Ip002687: return to sender: Service unavailable
May 18 16:09:55 demo sendmail[2687]: n4IKl6Ip002687: to=joseluis.moreno@reynet.com.mx, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=53305, relay=reynet.com.mx., dsn=4.0.0, stat=Deferred: Connection timed out with reynet.com.mx.
May 18 16:10:10 demo sendmail[2687]: n4IKl6Io002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:15, xdelay=00:00:00, mailer=esmtp, pri=124719, relay=mailb.correonegocios.com. [200.57.129.66], dsn=5.0.0, stat=Service unavailable
May 18 16:10:10 demo sendmail[2687]: n4IKl6Io002687: n4IKl6Ir002687: return to sender: Service unavailable
May 18 16:12:10 demo sendmail[2687]: n4IKl6Ir002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:00, xdelay=00:02:00, mailer=esmtp, pri=36812, relay=reynet.com.mx. [200.57.147.13], dsn=4.0.0, stat=Deferred: Connection timed out with reynet.com.mx.
May 18 16:12:10 demo sendmail[2687]: n4IKl6Ip002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:15, xdelay=00:00:00, mailer=esmtp, pri=143305, relay=mailb.correonegocios.com., dsn=5.0.0, stat=Service unavailable
May 18 16:12:10 demo sendmail[2687]: n4IKl6Ip002687: n4IKl6Is002687: return to sender: Service unavailable
May 18 16:12:10 demo sendmail[2687]: n4IKl6Is002687: to=joseluis.moreno@reynet.com.mx, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=54772, relay=reynet.com.mx., dsn=4.0.0, stat=Deferred: Connection timed out with reynet.com.mx.
May 18 16:12:26 demo sendmail[2687]: n4IKl6Ir002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:16, xdelay=00:00:01, mailer=esmtp, pri=126812, relay=maila.correonegocios.com. [200.57.129.65], dsn=5.0.0, stat=Service unavailable
May 18 16:12:26 demo sendmail[2687]: n4IKl6Ir002687: n4IKl6Iu002687: return to sender: Service unavailable
May 18 16:14:26 demo sendmail[2687]: n4IKl6Iu002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:00, xdelay=00:02:00, mailer=esmtp, pri=38904, relay=reynet.com.mx. [200.57.147.13], dsn=4.0.0, stat=Deferred: Connection timed out with reynet.com.mx.
May 18 16:14:26 demo sendmail[2687]: n4IKl6Is002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:16, xdelay=00:00:00, mailer=esmtp, pri=144772, relay=maila.correonegocios.com., dsn=5.0.0, stat=Service unavailable
May 18 16:14:26 demo sendmail[2687]: n4IKl6Is002687: n4IKl6Iv002687: return to sender: Service unavailable
May 18 16:14:26 demo sendmail[2687]: n4IKl6Iv002687: to=joseluis.moreno@reynet.com.mx, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=56292, relay=reynet.com.mx., dsn=4.0.0, stat=Deferred: Connection timed out with reynet.com.mx.
May 18 16:14:44 demo sendmail[2687]: n4IKl6Iu002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:18, xdelay=00:00:03, mailer=esmtp, pri=128904, relay=mailb.correonegocios.com. [200.57.129.66], dsn=5.0.0, stat=Service unavailable
May 18 16:14:44 demo sendmail[2687]: n4IKl6Iu002687: n4IKl6Ix002687: return to sender: Service unavailable
May 18 16:16:44 demo sendmail[2687]: n4IKl6Ix002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:00, xdelay=00:02:00, mailer=esmtp, pri=40996, relay=reynet.com.mx. [200.57.147.13], dsn=4.0.0, stat=Deferred: Connection timed out with reynet.com.mx.
May 18 16:16:44 demo sendmail[2687]: n4IKl6Iv002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:18, xdelay=00:00:00, mailer=esmtp, pri=146292, relay=maila.correonegocios.com., dsn=5.0.0, stat=Service unavailable
May 18 16:16:44 demo sendmail[2687]: n4IKl6Iv002687: n4IKl6J0002687: return to sender: Service unavailable
May 18 16:16:44 demo sendmail[2687]: n4IKl6J0002687: to=joseluis.moreno@reynet.com.mx, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=57812, relay=reynet.com.mx., dsn=4.0.0, stat=Deferred: Connection timed out with reynet.com.mx.
May 18 16:17:02 demo sendmail[2687]: n4IKl6Ix002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:18, xdelay=00:00:03, mailer=esmtp, pri=130996, relay=maila.correonegocios.com. [200.57.129.65], dsn=5.0.0, stat=Service unavailable
May 18 16:17:02 demo sendmail[2687]: n4IKl6Ix002687: n4IKl6J2002687: return to sender: Service unavailable
May 18 16:19:02 demo sendmail[2687]: n4IKl6J2002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:00, xdelay=00:02:00, mailer=esmtp, pri=43088, relay=reynet.com.mx. [200.57.147.13], dsn=4.0.0, stat=Deferred: Connection timed out with reynet.com.mx.
May 18 16:19:05 demo sendmail[2687]: n4IKl6J0002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:21, xdelay=00:00:00, mailer=esmtp, pri=147812, relay=maila.correonegocios.com., dsn=5.0.0, stat=Service unavailable
May 18 16:19:05 demo sendmail[2687]: n4IKl6J0002687: n4IKl6J3002687: return to sender: Service unavailable
May 18 16:19:05 demo sendmail[2687]: n4IKl6J3002687: to=joseluis.moreno@reynet.com.mx, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=59279, relay=reynet.com.mx., dsn=4.0.0, stat=Deferred: Connection timed out with reynet.com.mx.
May 18 16:19:22 demo sendmail[2687]: n4IKl6J2002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:20, xdelay=00:00:02, mailer=esmtp, pri=133088, relay=maila.correonegocios.com. [200.57.129.65], dsn=5.0.0, stat=Service unavailable
May 18 16:19:22 demo sendmail[2687]: n4IKl6J2002687: n4IKl6J5002687: return to sender: Service unavailable
May 18 16:21:22 demo sendmail[2687]: n4IKl6J5002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:00, xdelay=00:02:00, mailer=esmtp, pri=45180, relay=reynet.com.mx. [200.57.147.13], dsn=4.0.0, stat=Deferred: Connection timed out with reynet.com.mx.
May 18 16:21:22 demo sendmail[2687]: n4IKl6J3002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:17, xdelay=00:00:00, mailer=esmtp, pri=149279, relay=mailb.correonegocios.com., dsn=5.0.0, stat=Service unavailable
May 18 16:21:22 demo sendmail[2687]: n4IKl6J3002687: n4IKl6J6002687: return to sender: Service unavailable
May 18 16:21:22 demo sendmail[2687]: n4IKl6J6002687: to=joseluis.moreno@reynet.com.mx, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=60799, relay=reynet.com.mx., dsn=4.0.0, stat=Deferred: Connection timed out with reynet.com.mx.
May 18 16:21:38 demo sendmail[2687]: n4IKl6J5002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:16, xdelay=00:00:01, mailer=esmtp, pri=135180, relay=maila.correonegocios.com. [200.57.129.65], dsn=5.0.0, stat=Service unavailable
May 18 16:21:38 demo sendmail[2687]: n4IKl6J5002687: n4IKl6J8002687: return to sender: Service unavailable
May 18 16:23:38 demo sendmail[2687]: n4IKl6J8002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:00, xdelay=00:02:00, mailer=esmtp, pri=47272, relay=reynet.com.mx. [200.57.147.13], dsn=4.0.0, stat=Deferred: Connection timed out with reynet.com.mx.
May 18 16:23:38 demo sendmail[2687]: n4IKl6J6002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:16, xdelay=00:00:00, mailer=esmtp, pri=150799, relay=maila.correonegocios.com., dsn=5.0.0, stat=Service unavailable
May 18 16:23:38 demo sendmail[2687]: n4IKl6J6002687: n4IKl6J9002687: return to sender: Service unavailable
May 18 16:23:38 demo sendmail[2687]: n4IKl6J9002687: to=joseluis.moreno@reynet.com.mx, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=62266, relay=reynet.com.mx., dsn=4.0.0, stat=Deferred: Connection timed out with reynet.com.mx.
May 18 16:23:57 demo sendmail[2687]: n4IKl6J8002687: to=joseluis.moreno@reynet.com.mx, delay=00:02:19, xdelay=00:00:04, mailer=esmtp, pri=137272, relay=maila.correonegocios.com. [200.57.129.65], dsn=5.0.0, stat=Service unavailable
May 18 16:23:57 demo sendmail[2687]: n4IKl6J8002687: n4IKl6JB002687: return to sender: Service unavailable

sendmail is setup by default when pbx is installed

Any idea?

Thanks in advance..

RE: I can´t send E-mails

First, it appears that all attempts were to the same email address. Have you tried more than one and all fail? Is it failing only for mail to your doamin, or outside, or both. Send mail while logged into you linux host using this command:
       mail -v somename@somehost.com
If you are not familiar, after typing the body of the message, hit a CTRL D to end the message. Then wait. This will return details of the where the mail transaction is failing.

You said that that sendmail is set up by default when the pbx was installed. Well I would check a few things to be sure. Like is the default gateway on the system set correctly, is sendmail.cf configured correctly for your environment. For example, are you using a smarthost to relay mail is this set correctly. And if so is the smarthost been told to accept mail relay from the pbx? Is DNS set up and working properly (test with nslookup www.google.com)? Is your domain set, and more.

If you post the result of these I might be able to point you in the right direction.

RE: I can´t send E-mails

(OP)
thanks for you response

This is response from PBX:
login as: root
root@192.168.1.199's password:
Last login: Wed May 20 18:52:19 2009 from 192.168.1.94
[root@demo ~]# mail -v morenot@terra.com.mx
Subject: test
.
Cc:
Null message body; hope that's ok
morenot@terra.com.mx... Connecting to [127.0.0.1] via relay...
220 demo.scsmty.com ESMTP Sendmail 8.13.8/8.13.8; Thu, 21 May 2009 08:49:05 -0500
>>> EHLO demo.scsmty.com
250-demo.scsmty.com Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> MAIL From:<root@demo.scsmty.com> SIZE=40
250 2.1.0 <root@demo.scsmty.com>... Sender ok
>>> RCPT To:<morenot@terra.com.mx>
>>> DATA
250 2.1.5 <morenot@terra.com.mx>... Recipient ok (will queue)
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 n4LDn5n4006652 Message accepted for delivery
morenot@terra.com.mx... Sent (n4LDn5n4006652 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 demo.scsmty.com closing connection
[root@demo ~]#

However, the E-mail was not received..

with nslookup:
[root@demo ~]# nslookup
> www.google.com
Server:         127.0.0.1
Address:        127.0.0.1#53

Non-authoritative answer:
www.google.com  canonical name = www.l.google.com.
Name:   www.l.google.com
Address: 72.14.247.99
Name:   www.l.google.com
Address: 72.14.247.104
Name:   www.l.google.com
Address: 72.14.247.147
> www.google.com
Server:         127.0.0.1
Address:        127.0.0.1#53

Non-authoritative answer:
www.google.com  canonical name = www.l.google.com.
Name:   www.l.google.com
Address: 72.14.247.147
Name:   www.l.google.com
Address: 72.14.247.99
Name:   www.l.google.com
Address: 72.14.247.104
> www.terra.com.mx
Server:         127.0.0.1
Address:        127.0.0.1#53

Non-authoritative answer:
Name:   www.terra.com.mx
Address: 208.70.188.67
> www.terra.com.mx
Server:         127.0.0.1
Address:        127.0.0.1#53

Non-authoritative answer:
Name:   www.terra.com.mx
Address: 208.70.188.67
>

Let me know if you need more information



 

RE: I can´t send E-mails

telnet port 25 or use nc to see if you are blocked.  If you use a mail relay, also telnet to that on port 25 to see if you get a banner/connect

RE: I can´t send E-mails

Is sendmail only looking for mail on the loopback device (127.0.0.1)?  It should be using the ip address of interface used to access the network.  Sendmail will use your network settings to find its way out to the real world but you will need to use port forwarding to direct all smtp and pop3 traffic to the server's ip address.

 

RE: I can´t send E-mails

(OP)
Thanks for you responses

I am newb, What do I have do for check that you say me

Ip address PBX: 192.168.1.199
Default Gateway: 192.168.1.254(2Wire)
DNS: 192.168.1.254 (2wire)


Thanks in advance...

RE: I can´t send E-mails

I have no idea where files are on your system so I'll speak in general term.  Sendmail reads a configuration file when it starts called sendmail.cf.  This file is usually not edited by hand because it is hard to read and understand.  Rather, it is built from a macro compiler called m4.  The file that you edit is called sendmail.mc.  When you call the compiler, it takes sendmail.mc and all the other .mc files it has elswhere and compiles them into the new sendmail.cf.  Here is what you need to do.  First, loof for sendmail.mc and open it with your favorite text editor.  Look for this line:

CODE

 DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

this is telling sendmail to only look at the loopback device 127.0.0.1 or localhost.localdomain for mail.  You can comment it out by typing 'dnl' in front of the line.  You can also change 127.0.0.1 to the the ip address you want sendmail to use or just delete the line.  After saving the changes, you are ready to create the new sendmail.cf file.  Here is how you would do that.  Keep in mind that this is just an example.  You will need to change the paths and file names to match your system.

CODE


m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

Some systems don't use the m4 compiler but use the 'build' command instead.  let me know how things work out.

   

RE: I can´t send E-mails

(OP)
Thanks for your information.
I will ckeck that next tuesday...

 

RE: I can´t send E-mails

(OP)
Sorry for later...


I modified sendmail.cf and sendmail.mc:
Sendmail.cf:
# "Smart" relay host (may be null)
DSsmtp.reyent.com.mx


sendmail.mc:
dnl define(`SMART_HOST', `smtp.reyent.com.mx')dnl

dnl MASQUERADE_AS(`reyent.com.mx')dnl

then, restart sendmail..

Now I can send e-mail to user@reyent.com.mx, but...
I can´t to another account like hotmail, terra. gmail. etc..

How do I can to do it?

This is that I received:

Your message

  To:      jlmorenot@hotmail.com
  Subject: test3
  Sent:    Wed, 27 May 2009 17:38:17 -0500

did not reach the following recipient(s):

jlmorenot@hotmail.com on Wed, 27 May 2009 17:38:21 -0500
    You do not have permission to send to this recipient.  For assistance, contact your system administrator.
    < demo.scsmty.com #5.7.1 SMTP; 550 5.7.1 Unable to relay for jlmorenot@hotmail.com>

Thanks..

 

RE: I can´t send E-mails

You need to go to the system you defined as the smart host and tell it that it is permited to relay mail from the system(s) you will be using to send mail to it from. For instance, on unix there is typically a file relay-domains in /etc/mail. In this file you put in the ip address or domains of the PC's (?) or other system that will be sending mail via this host. This tells the smarthost that this email is not a malicious relay (spam), and that it is ok to pass it on. If the smarthost is on unix be sure to refresh sendmail after you make these changes.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close