Re: Problem Sending Mail With Postfix

2008-05-20 Thread Gerard
On Tue, 20 May 2008 12:59:08 -0400
"Tandon, Sahil \(IM\)" <[EMAIL PROTECTED]> wrote:

> [EMAIL PROTECTED]:
> 
> > Because of the way "mx1.free.bsd.org" was used (indicating 
> > that someone is trying to describe an error rather than 
> > actually copy it verbatim), I gathered that 
> > "my.mywebsite.com" was redacted along the lines of 
> > "host.example.com", rather than the actual hostname in question
> 
> My thoughts exactly.  I am almost certain he is just trying to hide 
> the actual hostname.

The constant mangling of information is definitely making it much
harder to diagnose his problem. He would probably be better of posting
the unedited output of: 'postconf -n' along with any pertinent log
entries, error messages, etc. He probably should just move the entire
thread to the Postfix forum anyway. They are really more adept at
handling this since it does, at least partially, pertain to Postfix.


-- 
“Gerard”
[EMAIL PROTECTED]

Mandrell: "You know what I think?"
Doctor:   "Ah, ah that's a catch question. With a brain your size you
  don't think, right?"

Dr. Who


signature.asc
Description: PGP signature


RE: Problem Sending Mail With Postfix

2008-05-20 Thread Tandon, Sahil (IM)
[EMAIL PROTECTED]:

> Because of the way "mx1.free.bsd.org" was used (indicating 
> that someone is trying to describe an error rather than 
> actually copy it verbatim), I gathered that 
> "my.mywebsite.com" was redacted along the lines of 
> "host.example.com", rather than the actual hostname in question

My thoughts exactly.  I am almost certain he is just trying to hide 
the actual hostname.

--
Sahil Tandon


NOTICE: If received in error, please destroy and notify sender. Sender does not 
intend to waive confidentiality or privilege. Use of this email is prohibited 
when received in error.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problem Sending Mail With Postfix

2008-05-20 Thread Chuck Swiger

On May 19, 2008, at 7:03 PM, Paul Schmehl wrote:

I'm not sure what the point of that is:

Macintosh:~ pauls$ dig +short my.mywebsite.com


Because of the way "mx1.free.bsd.org" was used (indicating that  
someone is trying to describe an error rather than actually copy it  
verbatim), I gathered that "my.mywebsite.com" was redacted along the  
lines of "host.example.com", rather than the actual hostname in  
question


--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problem Sending Mail With Postfix

2008-05-19 Thread Glyn Millington
"Montag" <[EMAIL PROTECTED]> writes:

> I've got Postfix SMTP server set up on a FreeBSD 7 box.  I'm receiving
> mail just fine, and I can send mail to my other web accounts (gmail),
> but my mail is getting rejected from the mailing lists.  Here is the
> output from the local mail queue:
>
> host mx1.free.bsd.org said: my.mywebsite.com: Helo command rejected:
> Host not found (in reply to RCPT TO command))
> freebsd-questions@freebsd.org
>
> Any thoughts?  

Montag, what values do you have in /usr/local/etc/postfix/main.cf for


mydomain
myorigin
mydestination
mynetworks?


What is the FQDN of the machine you are trying to send mail from? 


And yes, the real error mesage would be a help!


Glyn
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problem Sending Mail With Postfix

2008-05-19 Thread Sahil Tandon
* Sahil Tandon <[EMAIL PROTECTED]> [05-19-2008]:

> * Paul Schmehl <[EMAIL PROTECTED]> [05-19-2008]:
> 
> > Macintosh:~ pauls$ telnet my.mywebsite.com 25
> > Trying 209.181.247.105...
> > Connected to nullmx.mywebsite.com.
> > Escape character is '^]'.
> > 220 nullmx SMTP
> > EHLO testing.mydomain.com
> > 220 Hello
> > quit
> > 220 Buh-bye!
> > Connection closed by foreign host
> >
> > Why "nullmx.mywebsite.com"?  Which resolves to an entirely different IP 
> > address.
> 
> Perhaps the admin routes all port 25 traffic to nullmx.

Actually, I am wrong here.  This is happening on your machine because you are 
using telnet on OS X Leopard:

http://chip-miller.net/2008/03/14/solving-a-dns-mystery-on-os-x/

Try telnet from a FreeBSD (or any other) machine, and you will get:

# telnet my.mywebsite.com 25
Trying 208.87.33.150...
telnet: connect to address 208.87.33.150: Connection refused
telnet: Unable to connect to remote host

-- 
Sahil Tandon <[EMAIL PROTECTED]>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problem Sending Mail With Postfix

2008-05-19 Thread Giorgos Keramidas
On Mon, 19 May 2008 18:17:32 -0500, "Montag" <[EMAIL PROTECTED]> wrote:
> I've got Postfix SMTP server set up on a FreeBSD 7 box.  I'm receiving
> mail just fine, and I can send mail to my other web accounts (gmail),
> but my mail is getting rejected from the mailing lists.  Here is the
> output from the local mail queue:
>
> host mx1.free.bsd.org said: my.mywebsite.com: Helo command rejected:
> Host not found (in reply to RCPT TO command))
> freebsd-questions@freebsd.org
>
> Any thoughts?  I typed "sendmail -bp" to print that, which is curious,
> because I'm pretty sure sendmail is not running; Postfix should be
> handling everything.

You have misspelled the hostname `mx1.freebsd.org'.

Did you, by any chance, also edit the hostname of the error message?
Are you _really_ the owner of `my.mywebsite.com' or is this just
something you manually wrote when copying the error?

If you manually modified the original error, to hide the domain name,
we have to `guess' why the mx1.freebsd.org host fails to resolve your
hostname.  Please show us the real hostname, and then we may be able to
help you more effectively.

On Mon, 19 May 2008 21:03:00 -0500, Paul Schmehl <[EMAIL PROTECTED]> wrote:
> --On May 19, 2008 6:07:53 PM -0700 Chuck Swiger <[EMAIL PROTECTED]> wrote:
>> Many mailservers check that the HELO/EHLO response is a valid
>> hostname.  You can either configure your machine to use a valid
>> hostname (consider dyndns.org or similar, if you like), or you can
>> relay your email to something like your ISP's mailserver using
>> relayhost parameter or the transport mechanism
>
> I'm not sure what the point of that is:
>
> Macintosh:~ pauls$ dig +short my.mywebsite.com
> 208.87.33.150
> Macintosh:~ pauls$ dig +short -x 208.87.33.150
> my.mywebsite.com.
>
> The site resolves both forward and reverse.  So valid hostname is not
> the problem.

It may not be the *real* site we are talking about though.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problem Sending Mail With Postfix

2008-05-19 Thread Sahil Tandon
* Paul Schmehl <[EMAIL PROTECTED]> [05-19-2008]:

> Macintosh:~ pauls$ telnet my.mywebsite.com 25
> Trying 209.181.247.105...
> Connected to nullmx.mywebsite.com.
> Escape character is '^]'.
> 220 nullmx SMTP
> EHLO testing.mydomain.com
> 220 Hello
> quit
> 220 Buh-bye!
> Connection closed by foreign host
>
> Why "nullmx.mywebsite.com"?  Which resolves to an entirely different IP 
> address.

Perhaps the admin routes all port 25 traffic to nullmx.

> So I've got no idea why he's having this problem, unless it's because the 
> MX record doesn't point to my.mywebsite.com.

Pure conjecture, but I think in trying to avoid exposing his machine's real 
hostname, he just wrote my.mywebsite.com, which just so happens to be an 
actual hostname.  Otherwise, I am similarly perplexed.

-- 
Sahil Tandon <[EMAIL PROTECTED]>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problem Sending Mail With Postfix

2008-05-19 Thread Paul Schmehl

--On May 19, 2008 10:15:25 PM -0400 Sahil Tandon <[EMAIL PROTECTED]> wrote:


On May 19, 2008, at 4:17 PM, Montag wrote:


host mx1.free.bsd.org said: my.mywebsite.com: Helo command rejected:


Are you sure it wasn't mx1.freebsd.org?  And are you mangling
my.mywebsite.com or is that really the hostname with which your server
is  configured to EHLO/HELO?  The FreeBSD MXs also run Postfix and
employ the  reject_unknown_helo_hostname restriction; it rejects HELO
and EHLO hostnames  that lack DNS A or MX records.  Your log excerpt
looks suspicious because  my.mywebsite.com does have a valid DNS A
record:

my.mywebsite.com.   96  IN  A   208.87.33.150


Yes, but this is a bit weird.

Macintosh:~ pauls$ telnet my.mywebsite.com 25
Trying 209.181.247.105...
Connected to nullmx.mywebsite.com.
Escape character is '^]'.
220 nullmx SMTP
EHLO testing.mydomain.com
220 Hello
quit
220 Buh-bye!
Connection closed by foreign host

Why "nullmx.mywebsite.com"?  Which resolves to an entirely different IP 
address.


Macintosh:~ pauls$ dig +short nullmx.mywebsite.com
209.181.247.105

But it *is* the MX for that domain.

Macintosh:~ pauls$ dig -t MX mywebsite.com

; <<>> DiG 9.4.1-P1 <<>> -t MX mywebsite.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49578
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 3

;; QUESTION SECTION:
;mywebsite.com. IN  MX

;; ANSWER SECTION:
mywebsite.com.  300 IN  MX  10 nullmx.mywebsite.com.

So I've got no idea why he's having this problem, unless it's because the 
MX record doesn't point to my.mywebsite.com.


Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problem Sending Mail With Postfix

2008-05-19 Thread Sahil Tandon
On May 19, 2008, at 4:17 PM, Montag wrote:

> host mx1.free.bsd.org said: my.mywebsite.com: Helo command rejected:

Are you sure it wasn't mx1.freebsd.org?  And are you mangling 
my.mywebsite.com or is that really the hostname with which your server is 
configured to EHLO/HELO?  The FreeBSD MXs also run Postfix and employ the 
reject_unknown_helo_hostname restriction; it rejects HELO and EHLO hostnames 
that lack DNS A or MX records.  Your log excerpt looks suspicious because 
my.mywebsite.com does have a valid DNS A record:   

my.mywebsite.com.   96  IN  A   208.87.33.150
 
> Any thoughts?  I typed "sendmail -bp" to print that, which is curious, 
> because I'm pretty sure sendmail is not running; Postfix should be handling 
> everything.

It is actually Postfix behind the scenes!  See man mailwrapper(8) and the 
contents of /etc/mail/mailer.conf.

-- 
Sahil Tandon <[EMAIL PROTECTED]>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problem Sending Mail With Postfix

2008-05-19 Thread Paul Schmehl

--On May 19, 2008 6:07:53 PM -0700 Chuck Swiger <[EMAIL PROTECTED]> wrote:


On May 19, 2008, at 4:17 PM, Montag wrote:

host mx1.free.bsd.org said: my.mywebsite.com: Helo command rejected:
Host not found (in reply to RCPT TO command))
freebsd-questions@freebsd.org

Any thoughts?


Many mailservers check that the HELO/EHLO response is a valid hostname.
You can either configure your machine to use a valid hostname (consider
dyndns.org or similar, if you like), or you can relay your email to
something like your ISP's mailserver using relayhost parameter or the
transport mechanism


I'm not sure what the point of that is:

Macintosh:~ pauls$ dig +short my.mywebsite.com
208.87.33.150
Macintosh:~ pauls$ dig +short -x 208.87.33.150
my.mywebsite.com.

The site resolves both forward and reverse.  So valid hostname is not the 
problem.


It doesn't seem to be listening on port 25 though.

Macintosh:~ pauls$ telnet my.mywebsite.com 25
Trying 209.181.247.105...
Connected to nullmx.mywebsite.com.
Escape character is '^]'.
Connection closed by foreign host.

Macintosh:~ pauls$ dig +short nullmx.mywebsite.com
209.181.247.105

Which is a bit weird.

Montag, the sendmail commands are all aliased to the corresponding postfix 
commands.  For example, you can check the queue with either sendmail's 
mailq command or postfix's postqueue command.  Both launch the same binary.


Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problem Sending Mail With Postfix

2008-05-19 Thread Chuck Swiger

On May 19, 2008, at 4:17 PM, Montag wrote:

host mx1.free.bsd.org said: my.mywebsite.com: Helo command rejected:
Host not found (in reply to RCPT TO command))
freebsd-questions@freebsd.org

Any thoughts?


Many mailservers check that the HELO/EHLO response is a valid  
hostname.  You can either configure your machine to use a valid  
hostname (consider dyndns.org or similar, if you like), or you can  
relay your email to something like your ISP's mailserver using  
relayhost parameter or the transport mechanism


--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"