lmtp over tcp sockets, access denied and lmtp error: Message contains invalid header

Rodrigo Ventura yoda at isr.ist.utl.pt
Fri Jul 21 10:05:37 EDT 2006


On Friday 21 July 2006 14:32, Rudy Gevaert wrote:
> mail from:<rudy at webworm.org>
> 250 2.1.0 ok
> rcpt to:<user2 at domain.com>
> 250 2.1.5 ok
> DATA
> 354 go ahead
> daf
> da
>
>
> af
> .
> 554 5.6.0 Message contains invalid header
>
> How do I further test if my lmtp is working?  (So I can gave a look at
> the postfix problem)

After the DATA command you should enter the header fields in RCF??? format, 
followed by a empty line, followed by the actual data. For instance:

mail from: yoda at isr.ist.utl.pt
250 2.1.0 yoda at isr.ist.utl.pt... Sender ok
rcpt to: yoda at isr.ist.utl.pt
250 2.1.5 yoda at isr.ist.utl.pt... Recipient ok
data
354 Enter mail, end with "." on a line by itself
Subject: test

hi there
.
250 2.0.0 k6LE4oXP028311 Message accepted for delivery

Cheers,

Rodrigo

-- 

*** Rodrigo Martins de Matos Ventura <yoda at isr.ist.utl.pt>
***  Web page: http://www.isr.ist.utl.pt/~yoda
***   Teaching Assistant and PhD Student at ISR:
***    Instituto de Sistemas e Robotica, Polo de Lisboa
***     Instituto Superior Tecnico, Lisboa, PORTUGAL
*** PGP fingerprint = 0119 AD13 9EEE 264A 3F10  31D3 89B3 C6C4 60C6 4585


More information about the Info-cyrus mailing list