[exim] Mail from and lmtp transport

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Alexey Danilevsky
Date:  
À: exim-users
Sujet: [exim] Mail from and lmtp transport
Hello!

I came across a problem with lmtp-transport. When message is deliverd by
this transport it does not transfer real sender's address. That is in
MAIL FROM command only <> instead of <address@???>. But smtp
trasport with protocol smtp transfers sender's address normally. I can't
imagine what the promlem is.

So my transport configuration:

local_smtp:
    driver = smtp
    hosts = 213.59.11.3


dspam_spamcheck:
    driver = lmtp
    user = mailnull
    group = mail
    socket = /var/run/dspam.sock


And debug output:

Transport smtp protocol smtp:

91286 >>>>>>>>>>>>>>>> Remote deliveries >>>>>>>>>>>>>>>>
91286 --------> trans1@??? <--------
91291 local_smtp transport entered
91291   trans1@???
91291 using the transport's hosts: 213.59.11.3
91291 getting address for 213.59.11.3
91291 checking status of 213.59.11.3
91291 no host retry record
91291 no message retry record
91291 213.59.11.3 [213.59.11.3] status = usable
91291 delivering 1HUed1-000Nij-RU to 213.59.11.3 [213.59.11.3] (trans1@???)
91291 Connecting to 213.59.11.3 [213.59.11.3]:25 ... connected
91291 waiting for data on socket
91291 read response data: size=82
91291   SMTP<< 220 mail.onego.ru: WELCOME ONEGO.RU ESMTP SERVER Fri, 23 Mar 2007 10:56:04 +0300
91291   SMTP>> EHLO mx.onego.ru
91291 waiting for data on socket
91291 read response data: size=110
91291   SMTP<< 250-mail.onego.ru Hello mx.onego.ru [213.59.11.4]
91291          250-SIZE 10485760
91291          250-8BITMIME
91291          250-PIPELINING
91291          250 HELP
91291 using PIPELINING
91291 direct command:
91291   argv[0] = /home/SPY/bin/spy-filter
91291   argv[1] = $sender_address
91291   argv[2] = $local_part@$domain
91291 direct command after expansion:
91291   argv[0] = /home/filters/my-filter
91291   argv[1] = bmchart@???
91291   argv[2] = trans1@???
91291   SMTP>> MAIL FROM:<bmchart@???> SIZE=4356
91291   SMTP>> RCPT TO:<trans1@???>
91291   SMTP>> DATA
91291 waiting for data on socket
91291 read response data: size=78
91291   SMTP<< 250 OK
91291   SMTP<< 250 Accepted
91291   SMTP<< 354 Enter message, ending with "." on a line by itself
91291   SMTP>> writing message and terminating "."


transport lmtp:

91309 >>>>>>>>>>>>>>>> Local deliveries >>>>>>>>>>>>>>>>
91309 --------> kareliatyr@??? <--------
91313 direct command:
91313 argv[0] = /home/filters/my-filter
91313 argv[1] = $sender_address
91313 argv[2] = $local_part@$domain
91313 direct command after expansion:
91313 argv[0] = /home/SPY/bin/spy-filter
91313 argv[1] = sender@???
91313 argv[2] = kareliatyr@???
91313 dspam_spamcheck transport entered
91313 using socket /var/run/dspam.sock
91313 LMTP<< 220 DSPAM LMTP 3.6.8 Ready
91313 LMTP>> LHLO mx.onego.ru
91313 LMTP<< 250-mx.onego.ru
91313 LMTP<< 250-PIPELINING
91313 LMTP<< 250-ENHANCEDSTATUSCODES
91313 LMTP<< 250 SIZE
91313 LMTP>> MAIL FROM:<>
91313 LMTP<< 250 2.1.0 OK
91313 LMTP>> RCPT TO:<kareliatyr@???>
91313 LMTP<< 250 2.1.5 OK
91313 LMTP>> DATA
91313 LMTP<< 354 Enter mail, end with "." on a line by itself
91313 LMTP>> writing message and terminating "."