Re: Again Local Deliveries not working - I'm LOST, really...

2001-08-09 Thread Greg White

On Thu, Aug 09, 2001 at 03:26:16PM -0230, Martin Marconcini wrote:
> > If you don't put From and To headers in your message, there won't be
> any
> > From
> > and To headers in your message. What appears in these headers has
> nothing
> > to do
> > with the SMTP MAIL FROM and RCPT TO commands.
> 
> Now a question...
> Why I usually do a telnet xxx 25 and send a mail like I did and I works?
> 
> Is there any configuration? 
> 
> I mean I did mail to: email, rcpt to: email my whole life! 
> I swear!

If you mean, "How come other MTAs let me get away with that?", it's
simple. qmail speaks SMTP properly, and is not very forgiving about
those that don't. The ability to handle arbitrary variations in the SMTP
protocol would require a parser in qmail-smtpd, which would complicate
the code unnecessarily. I have yet to see another MTA which sends mail
in the format you describe, so a parser is unecessary.

Another former poor SMTP speaker,
GW



Re: Again Local Deliveries not working - I'm LOST, really...

2001-08-09 Thread Charles Cazabon

Martin Marconcini <[EMAIL PROTECTED]> wrote:
> > 
> > Try talking proper SMTP instead:
> > 
> > 220 megadeth.dnsalias.com ESMTP
> > helo megadeth.dnsalias.com
> > 250 megadeth.dnsalias.com
> > mail from:<[EMAIL PROTECTED]>
> > 250 ok
> > rcpt to:<[EMAIL PROTECTED]>
[...]
> This way it worked...  however the mail program will say 
> 
> from:
> to:
[...]

The addresses given in the SMTP conversation have absolutely nothing to
do with the From: and To: headers you see when you view the message in
your MUA.  Messages can show up in your mailbox without even having
From: and To: headers.  If you want your MUA to "say" the right things,
then compose the message properly.

Charles
-- 
---
Charles Cazabon<[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
---



Re: Again Local Deliveries not working - I'm LOST, really...

2001-08-09 Thread Charles Cazabon

Martin Marconcini <[EMAIL PROTECTED]> wrote:

> Mails for accounts in my box arrive smooth. But if I try to send FROM
> localhost to local ... will not.
[...] 

> @40003b72949c101d82dc new msg 165132
> @40003b72949c10372174 info msg 165132: bytes 182 from <> qp 23545
> uid 2850
> @40003b72949c152f64ac starting delivery 42: msg 165132 to local
> @megadeth.dnsalias.com
> @40003b72949c1538e25c status: local 1/10 remote 0/20
> @40003b72949c15965054 delivery 42: success: 

That's not right.  qmail logs something like 1+0+0 or various things.
Are you using something weird as an MDA?  What's your default delivery
argument?  You could be dropping messages on the floor.

> /var/log/maillog  (when using PHP function mail() points to
> /var/qmail/bin/qmail-inject)
> 
> Aug  9 10:42:54 jupiter sendmail[6217]: gethostbyaddr(209.99.238.152)
> failed: 2 

Nope, that's sendmail.  What's sendmail doing here?  You've got bigger
issues to fix.  I think you failed to install qmail properly.

> Any help will be appreciated. And by the way, this used to work before I
> touch anything... 

Conclusion:  you "touched" something and broke the system.  So what did
you touch, and why haven't you changed it back to the way it was?

Charles
-- 
---
Charles Cazabon<[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
---



RE: Again Local Deliveries not working - I'm LOST, really...

2001-08-09 Thread Martin Marconcini

> If you don't put From and To headers in your message, there won't be
any
> From
> and To headers in your message. What appears in these headers has
nothing
> to do
> with the SMTP MAIL FROM and RCPT TO commands.

Now a question...
Why I usually do a telnet xxx 25 and send a mail like I did and I works?

Is there any configuration? 

I mean I did mail to: email, rcpt to: email my whole life! 
I swear!

Nevermind anyway.


> > It's qmail-inject (which is linked to sendmail binary)I mean I
deleted
> > sendmail binady from the OpenBSD box and added a sendmail linking to
> qmail's
> > sendmail. The reason for this? It's in www.lifewithqmail.org.
> 
> Those log entries come from sendmail, *not* from any qmail program. I
> promise.

I believe you. I will investigate further...




Re: Again Local Deliveries not working - I'm LOST, really...

2001-08-09 Thread 'Chris Johnson'

On Thu, Aug 09, 2001 at 03:15:38PM -0230, Martin Marconcini wrote:
> > 
> > Try talking proper SMTP instead:
> > 
> > 220 megadeth.dnsalias.com ESMTP
> > helo megadeth.dnsalias.com
> > 250 megadeth.dnsalias.com
> > mail from:<[EMAIL PROTECTED]>
> > 250 ok
> > rcpt to:<[EMAIL PROTECTED]>
> > 250 ok
> > data
> > 354 go ahead
> > Subject: Whatever
> > 
> > Whatever
> > .
> > 250 ok 997364882 qp 23545
> 
> This way it worked...  however the mail program will say 
> 
> from:
> to:
> Subject: whatever
> And the msg body indeed has: 
> Whatever
> IF I try mail from: martin  rcpt to: martin  
> 
> It will happen the same... why it may not be working the other way?

If you don't put From and To headers in your message, there won't be any From
and To headers in your message. What appears in these headers has nothing to do
with the SMTP MAIL FROM and RCPT TO commands.

> > > /var/log/maillog  (when using PHP function mail() points to
> > > /var/qmail/bin/qmail-inject)
> 
> 
> > > Aug  9 10:44:09 jupiter sendmail[20485]: f79Dgso06217: to=Martin
> > 
> > See all that stuff that says "sendmail"? qmail doesn't seem to be involved
> > here.
> 
> It's qmail-inject (which is linked to sendmail binary)I mean I deleted
> sendmail binady from the OpenBSD box and added a sendmail linking to qmail's
> sendmail. The reason for this? It's in www.lifewithqmail.org.

Those log entries come from sendmail, *not* from any qmail program. I promise.

Chris



RE: Again Local Deliveries not working - I'm LOST, really...

2001-08-09 Thread Martin Marconcini

> 
> Try talking proper SMTP instead:
> 
> 220 megadeth.dnsalias.com ESMTP
> helo megadeth.dnsalias.com
> 250 megadeth.dnsalias.com
> mail from:<[EMAIL PROTECTED]>
> 250 ok
> rcpt to:<[EMAIL PROTECTED]>
> 250 ok
> data
> 354 go ahead
> Subject: Whatever
> 
> Whatever
> .
> 250 ok 997364882 qp 23545

This way it worked...  however the mail program will say 

from:
to:
Subject: whatever
And the msg body indeed has: 
Whatever
IF I try mail from: martin  rcpt to: martin  

It will happen the same... why it may not be working the other way?



> 
> > /var/log/maillog  (when using PHP function mail() points to
> > /var/qmail/bin/qmail-inject)


> > Aug  9 10:44:09 jupiter sendmail[20485]: f79Dgso06217: to=Martin
> 
> See all that stuff that says "sendmail"? qmail doesn't seem to be
involved
> here.

It's qmail-inject (which is linked to sendmail binary) I mean I deleted
sendmail binady from the OpenBSD box and added a sendmail linking to
qmail's sendmail. The reason for this? It's in www.lifewithqmail.org.

Now, messages arrive, that means qmail seems to be properly
configured... what could be happending?

Thanks for your answer!
Martin.





Re: Again Local Deliveries not working - I'm LOST, really...

2001-08-09 Thread Chris Johnson

On Thu, Aug 09, 2001 at 02:34:06PM -0230, Martin Marconcini wrote:
> Hi list: I am experiencing the same trouble a few days ago... 
> My Qmail will accept inbound and deliver to Maildir but not from
> LOCALHOST...
> Box is openbsd 2.9.
> Mails for accounts in my box arrive smooth. But if I try to send FROM
> localhost to local ... will not.
> 
> 
> Here is the log/long version:
> 
> bash-2.05# telnet localhost 25
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 220 megadeth.dnsalias.com ESMTP
> helo megadeth.dnsalias.com
> 250 megadeth.dnsalias.com
> mail to [EMAIL PROTECTED]
> 250 ok
> rcpt to [EMAIL PROTECTED]
> 250 ok
> data
> 354 go ahead
> .
> 250 ok 997364882 qp 23545
> Mail will never arrive...

Try talking proper SMTP instead:

220 megadeth.dnsalias.com ESMTP
helo megadeth.dnsalias.com
250 megadeth.dnsalias.com
mail from:<[EMAIL PROTECTED]>
250 ok
rcpt to:<[EMAIL PROTECTED]>
250 ok
data
354 go ahead
Subject: Whatever

Whatever
.
250 ok 997364882 qp 23545

> /var/log/maillog  (when using PHP function mail() points to
> /var/qmail/bin/qmail-inject)
> 
> Aug  9 10:42:54 jupiter sendmail[6217]: gethostbyaddr(209.99.238.152)
> failed: 2 
> Aug  9 10:42:54 jupiter sendmail[6217]: f79Dgso06217: from=www,
> size=276, class=0, nrcpts=1,
> msgid=<[EMAIL PROTECTED]>,
> relay=www@localhost
> Aug  9 10:44:09 jupiter sendmail[20485]: f79Dgso06217: to=Martin
> Marconcini <[EMAIL PROTECTED]>, ctladdr=www (67/67),
> delay=00:01:15, xdelay=00:01:15, mailer=esmtp, pri=30276,
> relay=megadeth.dnsalias.com. [209.99.238.152], dsn=4.0.0, stat=Deferred:
> Connection timed out with megadeth.dnsalias.com.

See all that stuff that says "sendmail"? qmail doesn't seem to be involved
here.

Chris