LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
LinkBack Search this Thread
Old 08-07-2007, 12:20 AM   #1
Marv Bon
LQ Newbie
 
Registered: Aug 2007
Posts: 18

Rep: Reputation: 0
Unhappy Send Mail is not delivering email to the outside World


Hello

I am using Sendmail on a OpenBsd3.6 server. I have being trying to look for information on this subject but not luck yet. I am new on this but I did my homework and I installed OpenBSD from scratch on a Mac G4 everything works beautifully but send mail. Please help me.

This is what I get when I send mail
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


# mail -v mbonilla@tvg.com
Subject: This is a test
DATA: This is a test from laxbcastdnos01 to mbonilla@tvg.com


bye

.
EOT
mbonilla@tvg.com... Connecting to [127.0.0.1] via relay...
220 LAXBCASTDNS01.tvgbcast.tvgnetwork.local ESMTP Sendmail 8.13.0/8.13.0; Mon, 6 Aug 2007 21:06:57 -0700 (PDT)
>>> EHLO LAXBCASTDNS01.tvgbcast.tvgnetwork.local
250-LAXBCASTDNS01.tvgbcast.tvgnetwork.local Hello smmsp@localhost.tvgbcast.tvgnetwork.local [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@LAXBCASTDNS01.tvgbcast.tvgnetwork.local> SIZE=114
250 2.1.0 <root@LAXBCASTDNS01.tvgbcast.tvgnetwork.local>... Sender ok
>>> RCPT To:<mbonilla@tvg.com>
>>> DATA
250 2.1.5 <mbonilla@tvg.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 l7746v6F020524 Message accepted for delivery
mbonilla@tvg.com... Sent (l7746v6F020524 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 LAXBCASTDNS01.tvgbcast.tvgnetwork.local closing connection
#
 
Old 08-07-2007, 07:33 AM   #2
cconstantine
Member
 
Registered: Dec 2005
Distribution: RedHat, Ubuntu
Posts: 101

Rep: Reputation: 15
looks fine (?)

at a glance, it looks like a normal email msg. What specifically is the problem?
-cf
 
Old 08-07-2007, 01:55 PM   #3
winfinit
Member
 
Registered: Jul 2006
Location: FL, Delray Beach
Distribution: Slackware11, LFS
Posts: 67

Rep: Reputation: 15
what are you getting in your mail logs? because it could be that your message is getting rejected by another server for a policy reasons, since you are not sending a message from a valid domain, with correct reverse dns. i know Gmail is good for testing, since they are not checking reverse dns...
 
Old 08-08-2007, 01:16 PM   #4
Marv Bon
LQ Newbie
 
Registered: Aug 2007
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by cconstantine
at a glance, it looks like a normal email msg. What specifically is the problem?
-cf
The problem is the all email comes back.
 
Old 08-08-2007, 01:23 PM   #5
Marv Bon
LQ Newbie
 
Registered: Aug 2007
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by winfinit
what are you getting in your mail logs? because it could be that your message is getting rejected by another server for a policy reasons, since you are not sending a message from a valid domain, with correct reverse dns. i know Gmail is good for testing, since they are not checking reverse dns...
Thanks for your response. Could you explain what you mean by "correct reverse dns"
 
Old 08-08-2007, 01:30 PM   #6
cconstantine
Member
 
Registered: Dec 2005
Distribution: RedHat, Ubuntu
Posts: 101

Rep: Reputation: 15
re: the mail which comes back... there should be some sort of reason, code or explanation from the mail server which returned it. What do the returns say?

re: "correct reverse DNS"... IP addr resolves to a hostname which is identical to what your mail server said in the "EHLO my.host.name". So if your IP is 1.2.3.4 and that resolves to "foobar.some.isp.net.name.whatever". Then your forward and reverse DNS don't "match". Some mail servers don't like that and may refuse to accept your mail.

-c
 
Old 08-08-2007, 06:32 PM   #7
winfinit
Member
 
Registered: Jul 2006
Location: FL, Delray Beach
Distribution: Slackware11, LFS
Posts: 67

Rep: Reputation: 15
what do you get in your log? /var/log/mail.log or where ever your sendmail is configured to log transactions at, also you said that your mail is coming back, so i assume it is another server that is bouncing your mail, if that is so, what does that bounce say? usually you will get 554 denied if it was rejected for a policy reasons(spam, formmail, missing reverse dns, blacklisted, etc.) you could also get other codes, please post it up so we can look at it, preferably complete bounce back message including header (you can hide your ip if you dont want to reveal it)

thanks
 
Old 08-10-2007, 02:07 PM   #8
Marv Bon
LQ Newbie
 
Registered: Aug 2007
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by cconstantine
re: the mail which comes back... there should be some sort of reason, code or explanation from the mail server which returned it. What do the returns say?

re: "correct reverse DNS"... IP addr resolves to a hostname which is identical to what your mail server said in the "EHLO my.host.name". So if your IP is 1.2.3.4 and that resolves to "foobar.some.isp.net.name.whatever". Then your forward and reverse DNS don't "match". Some mail servers don't like that and may refuse to accept your mail.

-c
I'm sorry for the delay but I was sent to another job.
Constatine here is the output of netstat and when I telnet localhost 110... I get connection refused but on port 25 is golden.

Terminal type? [vt100]
# netstat
Active Internet connections
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp 0 52 LAXBCASTDNS01.ssh 10.6.50.1.1307 ESTABLISHED
tcp 0 0 LAXBCASTDNS01.smtp 10.11.50.1.34239 TIME_WAIT
tcp 0 0 localhost.953 *.* LISTEN
tcp 0 0 LAXBCASTDNS01.domain *.* LISTEN
tcp 0 0 localhost.domain *.* LISTEN
Active Internet connections
Proto Recv-Q Send-Q Local Address Foreign Address (state)
udp 0 0 localhost.biff *.*
udp 0 0 LAXBCASTDNS01.domain *.*
udp 0 0 localhost.domain *.*
Active Internet connections
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp6 0 0 localhost.953 *.* LISTEN
Active Internet connections
Proto Recv-Q Send-Q Local Address Foreign Address (state)
udp6 0 0 localhost.biff *.*
Active UNIX domain sockets
Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr
0x72817d8 dgram 0 0 0x0 0xe0e4de80 0x0 0xe0e58740
0x7281c88 stream 0 0 0x69fa1a0 0x0 0x0 0x0 tabs/.sock
0x7281bc0 dgram 0 0 0x0 0xe0e4de80 0x0 0xe0e58dc0
0x7281e18 stream 0 0 0x6a02d70 0x0 0x0 0x0 /tmp/ssh-ZaCSW29088/agent.29088
0x603c7d0 dgram 0 0 0x0 0xe0e4de80 0x0 0xe0e4d5c0
0x603c640 stream 0 0 0x0 0xe0e4ddc0 0x0 0x0
0x603c578 stream 0 0 0x0 0xe0e4d380 0x0 0x0
0x603c4b0 dgram 0 0 0x0 0xe0e4de80 0x0 0x0
0x603c3e8 stream 0 0 0x0 0xe0e19a00 0x0 0x0
0x603c320 stream 0 0 0x0 0xe0e4d900 0x0 0x0
0x603c258 dgram 0 0 0x655fa60 0x0 0x0 0x0 /var/empty/dev/log
0x603c190 dgram 0 0 0x655f998 0x0 0x0 0x0 /var/named/dev/log
0x603c0c8 dgram 0 0 0x655f8d0 0x0 0xe0e584c0 0x0 /dev/log
 
Old 08-10-2007, 02:10 PM   #9
cconstantine
Member
 
Registered: Dec 2005
Distribution: RedHat, Ubuntu
Posts: 101

Rep: Reputation: 15
earlier you mentioned "The problem is the all email comes back."

Can you provide an example of an email which came back? Whichever mail server bounced it, probably included an SMTP code and a reson...
-c
 
Old 08-10-2007, 02:11 PM   #10
Marv Bon
LQ Newbie
 
Registered: Aug 2007
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by winfinit
what do you get in your log? /var/log/mail.log or where ever your sendmail is configured to log transactions at, also you said that your mail is coming back, so i assume it is another server that is bouncing your mail, if that is so, what does that bounce say? usually you will get 554 denied if it was rejected for a policy reasons(spam, formmail, missing reverse dns, blacklisted, etc.) you could also get other codes, please post it up so we can look at it, preferably complete bounce back message including header (you can hide your ip if you dont want to reveal it)

thanks
Winfinit I am sorry for the delay in replying but I was sent to other job. Sendmail is not receiving or sending now and when I try to check mail the message is "No mail for root"

I'm sorry for the delay but I was sent to another job.
Constatine here is the output of netstat and when I telnet localhost 110... I get connection refused but on port 25 is golden.

This is the output of netstat.

Terminal type? [vt100]
# netstat
Active Internet connections
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp 0 52 LAXBCASTDNS01.ssh 10.6.50.1.1307 ESTABLISHED
tcp 0 0 LAXBCASTDNS01.smtp 10.11.50.1.34239 TIME_WAIT
tcp 0 0 localhost.953 *.* LISTEN
tcp 0 0 LAXBCASTDNS01.domain *.* LISTEN
tcp 0 0 localhost.domain *.* LISTEN
Active Internet connections
Proto Recv-Q Send-Q Local Address Foreign Address (state)
udp 0 0 localhost.biff *.*
udp 0 0 LAXBCASTDNS01.domain *.*
udp 0 0 localhost.domain *.*
Active Internet connections
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp6 0 0 localhost.953 *.* LISTEN
Active Internet connections
Proto Recv-Q Send-Q Local Address Foreign Address (state)
udp6 0 0 localhost.biff *.*
Active UNIX domain sockets
Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr
0x72817d8 dgram 0 0 0x0 0xe0e4de80 0x0 0xe0e58740
0x7281c88 stream 0 0 0x69fa1a0 0x0 0x0 0x0 tabs/.sock
0x7281bc0 dgram 0 0 0x0 0xe0e4de80 0x0 0xe0e58dc0
0x7281e18 stream 0 0 0x6a02d70 0x0 0x0 0x0 /tmp/ssh-ZaCSW29088/agent.29088
0x603c7d0 dgram 0 0 0x0 0xe0e4de80 0x0 0xe0e4d5c0
0x603c640 stream 0 0 0x0 0xe0e4ddc0 0x0 0x0
0x603c578 stream 0 0 0x0 0xe0e4d380 0x0 0x0
0x603c4b0 dgram 0 0 0x0 0xe0e4de80 0x0 0x0
0x603c3e8 stream 0 0 0x0 0xe0e19a00 0x0 0x0
0x603c320 stream 0 0 0x0 0xe0e4d900 0x0 0x0
0x603c258 dgram 0 0 0x655fa60 0x0 0x0 0x0 /var/empty/dev/log
0x603c190 dgram 0 0 0x655f998 0x0 0x0 0x0 /var/named/dev/log
0x603c0c8 dgram 0 0 0x655f8d0 0x0 0xe0e584c0 0x0 /dev/log
 
Old 08-10-2007, 03:03 PM   #11
Marv Bon
LQ Newbie
 
Registered: Aug 2007
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by cconstantine
earlier you mentioned "The problem is the all email comes back."

Can you provide an example of an email which came back? Whichever mail server bounced it, probably included an SMTP code and a reson...
-c
Right now I can't see any emails, Sendmail is not receiving or sending any emails
 
Old 08-10-2007, 03:16 PM   #12
cconstantine
Member
 
Registered: Dec 2005
Distribution: RedHat, Ubuntu
Posts: 101

Rep: Reputation: 15
?

Your very first post showed your local sendmail successfully accepting a message for delivery.

If that still works, then check your syslog file (ref your /etc/syslog.conf or equiv for the 'mail' facility's log) to see what sendmail does with the message after acceptance.

If that does not work, post the output of the test when you run it now. (mail -v... just as you started)
-c
 
Old 08-10-2007, 07:08 PM   #13
Marv Bon
LQ Newbie
 
Registered: Aug 2007
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by cconstantine
?

Your very first post showed your local sendmail successfully accepting a message for delivery.

If that still works, then check your syslog file (ref your /etc/syslog.conf or equiv for the 'mail' facility's log) to see what sendmail does with the message after acceptance.

If that does not work, post the output of the test when you run it now. (mail -v... just as you started)
-c
Here is the output for mail -v


mbonilla@tvg.com... Connecting to [127.0.0.1] via relay...
220 LAXBCASTDNS01.tvgbcast.tvgnetwork.local ESMTP Sendmail 8.13.0/8.13.0; Fri, 10 Aug 2007 17:04:55 -0700 (PDT)
>>> EHLO LAXBCASTDNS01.tvgbcast.tvgnetwork.local
250-LAXBCASTDNS01.tvgbcast.tvgnetwork.local Hello mbonilla@localhost.tvgbcast.tvgnetwork.local [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:<mbonilla@LAXBCASTDNS01.tvgbcast.tvgnetwork.local> SIZE=52
250 2.1.0 <mbonilla@LAXBCASTDNS01.tvgbcast.tvgnetwork.local>... Sender ok
>>> RCPT To:<mbonilla@tvg.com>
>>> DATA
250 2.1.5 <mbonilla@tvg.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 l7B04tZ3004721 Message accepted for delivery
mbonilla@tvg.com... Sent (l7B04tZ3004721 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 LAXBCASTDNS01.tvgbcast.tvgnetwork.local closing connection
 
Old 08-20-2007, 11:32 AM   #14
Marv Bon
LQ Newbie
 
Registered: Aug 2007
Posts: 18

Original Poster
Rep: Reputation: 0
Hello. I am a newbie using OpenBSD 3.6 on a Mac G4. We are using this system as a DNS server, syslog and sendmail server for a small network of about 20 windows computers. We want this system to allow external requests for local services 1-SMTP 2-SYSLOG. Here is the output of the netstat -a following by mail -v and a maillog at the end. I have been researching this problem in many websites, books and articles and so far nothing. Any help will be appreciated.


Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp 0 0 localhost.38841 localhost.domain TIME_WAIT
tcp 0 52 LAXBCASTDNS01.ssh 10.6.50.1.2644 ESTABLISHED
tcp 0 0 *.ssh *.* LISTEN
tcp 0 0 *.submissi *.* LISTEN
tcp 0 0 *.smtp *.* LISTEN
tcp 0 0 *.time *.* LISTEN
tcp 0 0 *.daytime *.* LISTEN
tcp 0 0 *.auth *.* LISTEN
tcp 0 0 localhost.953 *.* LISTEN
tcp 0 0 LAXBCASTDNS01.domain *.* LISTEN
tcp 0 0 localhost.domain *.* LISTEN
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
udp 0 0 *.echo *.*
udp 0 0 *.ntalk *.*
udp 0 0 localhost.biff *.*
udp 0 0 *.tftp *.*
udp 0 0 *.16975 *.*
udp 0 0 LAXBCASTDNS01.domain *.*
udp 0 0 localhost.domain *.*
udp 0 0 *.syslog *.*
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp6 0 0 *.ssh *.* LISTEN
tcp6 0 0 *.submissi *.* LISTEN
tcp6 0 0 *.smtp *.* LISTEN
tcp6 0 0 *.time *.* LISTEN
tcp6 0 0 *.daytime *.* LISTEN
tcp6 0 0 *.auth *.* LISTEN
tcp6 0 0 localhost.953 *.* LISTEN
tcp6 0 0 *.domain *.* LISTEN
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
udp6 0 0 localhost.biff *.*
udp6 0 0 *.1958 *.*
udp6 0 0 *.domain *.*
Active UNIX domain sockets
Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr
0x6b748a0 dgram 0 0 0x0 0xe0e4de80 0x0 0xe0e56580
0x7d09010 stream 0 0 0x6a28730 0x0 0x0 0x0 tabs/.sock
0x6b74ee0 dgram 0 0 0x0 0xe0e4de80 0x0 0xe0e56e80
0x603c7d0 dgram 0 0 0x0 0xe0e4de80 0x0 0xe0e4dd40
0x603c640 stream 0 0 0x0 0xe0e4de00 0x0 0x0
0x603c578 stream 0 0 0x0 0xe0e19c40 0x0 0x0

bonillam@hotmail.com... Connecting to [127.0.0.1] via relay...
220 LAXBCASTDNS01.tvgbcast.tvgnetwork.local ESMTP Sendmail 8.13.0/8.13.0; Mon, 20 Aug 2007 09:11:25 -0700 (PDT)
>>> EHLO LAXBCASTDNS01.tvgbcast.tvgnetwork.local
250-LAXBCASTDNS01.tvgbcast.tvgnetwork.local Hello smmsp@localhost [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@LAXBCASTDNS01.tvgbcast.tvgnetwork.local> SIZE=67
250 2.1.0 <root@LAXBCASTDNS01.tvgbcast.tvgnetwork.local>... Sender ok
>>> RCPT To:<bonillam@hotmail.com>
>>> DATA
250 2.1.5 <bonillam@hotmail.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 l7KGBPRF004518 Message accepted for delivery
bonillam@hotmail.com... Sent (l7KGBPRF004518 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 LAXBCASTDNS01.tvgbcast.tvgnetwork.local closing connection

MAIL LOG
Aug 20 09:13:13 laxbcastdns01 sm-mta[14623]: l7KGDDat014623: [10.11.50.1] did not issue MAIL/EXPN/VRFY/ETRN during connection t
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I send email through mail noninteractively? laggerific Linux - Software 2 12-15-2006 09:28 AM
Mail server for Email Users around the World shawnbishop Linux - General 4 10-20-2006 01:46 AM
qmail doesnt send email to the outside world leosgb Linux - Networking 7 04-28-2006 07:32 PM
Send mail from Linux machine to outside world schamie Linux - Networking 1 11-10-2005 02:15 AM
using `mail` to send email to outside world ganninu Linux - Networking 0 08-04-2003 04:35 AM


All times are GMT -5. The time now is 08:25 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration