Hi!
I'm using the courier-pythonfilter package and its xfilter module, but
I've discovered that it's unusable if the SMTP server requires SMTP
authentication.
Here's why:
When the xfilter module submits the modified message, it specifies the
esmtp transport for submission. It also provides the source IP address
of the message. If SMTP AUTH was used for submitting the original
message, the credentials aren't propagated - the xfilter-ed message
doesn't have them anymore.
But the ESMTP server sees this message as coming from the original IP
address and discovers that SMTP AUTH is mandatory - so it returns error 513:
courierfilter: Uncaught exception in "sigappender" doFilter function:
courier.xfilter.SubmitError:'513 Relaying denied.\n'
A simple fix for this would be to submit the message using the local
transport - hence the attached patch for xfilter.py.
It would be probably nice to have an optional argument to the submit()
method that would let us specify the desired transport when calling it,
but IMHO it should default to local, not esmtp, when left unspecified.
--
Best Regards,
Aleksander Adamowski
GG#: 274614
ICQ UIN: 19780575
http://olo.org.pl
--
Aleksander Adamowski
Administrator systemów korporacyjnych; Instruktor
Altkom Akademia S.A. http://www.altkom.pl
Warszawa, ul. Chłodna 51
kom. 0-601-318-080
Sąd Rejonowy dla m.st. Warszawy w Warszawie, XII Wydział Gospodarczy Krajowego
Rejestru Sądowego,
KRS: 0000120139, NIP 118-00-08-391, Kapitał zakładowy: 1000 000 PLN. Adres
rejestrowy Firmy - ul. Stawki 2, 00-193 Warszawa.
Niniejsza wiadomość zawiera informacje zastrzeżone i stanowiące tajemnicę
przedsiębiorstwa firmy Altkom Akademia S.A.
Ujawnianie tych informacji osobom trzecim lub nieuprawnione wykorzystanie ich
do własnych celów jest zabronione.
Jeżeli otrzymaliście Państwo niniejszą wiadomość omyłkowo, prosimy o
niezwłoczne skontaktowanie się z nadawcą oraz usunięcie wszelkich kopii
niniejszej wiadomości.
This message contains proprietary information and trade secrets of Altkom
Akademia S.A. company.
Unauthorized use or disclosure of this information to any third party is
prohibited.
If you received this message by mistake, please contact the sender immediately and delete all copies of this message.
Index: courier/xfilter.py
===================================================================
--- courier/xfilter.py (revision 6)
+++ courier/xfilter.py (working copy)
@@ -168,7 +168,7 @@
submitArgs = [submitPath]
if self.controlData['u']:
submitArgs.append('-src=%s' % self.controlData['u'])
- submitArgs.append('esmtp')
+ submitArgs.append('local')
submitArgs.append(self.controlData['f'])
(sInput, sOutput) = os.popen2(submitArgs, 't', 0)
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users