On 22-Sep-2001 Albert Krusbersky wrote:
> Hi Davide,
>
> Davide Libenzi <[EMAIL PROTECTED]> writes:
>
> [SMTP after POP Problem, SMTP not sent to Provider]
>
>> Try to run XMail in debug mode and look at the messages.
>> SMAIL processed must be triggered by an ETRN ( if there are messages to send ).
>
> I made following, commented script to run XMail in Debug mode:
>
> --------------------------------------------------------------------
>#! /bin/sh
>#
># This is Debug Start script for XMail 1.0 on zeder.steigbachtal.de
># the commandlineswitches are the same as in /etc/init.d/xmail
># expect the "-Md" and "> xmaillog.log"
>#
># I want to see, what on my System is going on:
># -Pl = POP3 logging
># -Sl = SMTP logging
># -Ql = SMAIL logging
># -Fl = Finger logging
># -Cl = Control logging
># -Ll = local Mail logging
>#
>#
># Do not POP automagically. Wait until I tell you to do this.
>#
># -Yi 0 = POP3 with external off (use .psync-trigger)
># -Yt 2 = use only 2 Threads for POP3 with external
>#
>#
># Set SMTP to large delivery Intervalls so that my Mailexchange Script has a
># Chance to POP bevore XMail wants to SMTP (SMTP after POP)
>#
># -Qt 600 = set time between trials to SMTP to 10min.
># -Qn 1 = only one Tread for SMTP with External
># -Qi 0 = set ratio to 0 for not to increase delivery intervall
># -Qr 65535 = try as often as ?
>
># -Md = Debugmode on (be verbose)
>#
># and give the output to xmaillog.log for future processing
>
> ./XMail -Ms /var/MailRoot/ -Pl -Sl -Ql -Fl -Cl -Ll -Yi 0 Yt 2 -Qt 600 -Qn 1 -Qi 0
>-Qr 65535 -Md > xmaillog.log
> ---------------------------------------------------------------------------------
>
> I initiate Mailexchabge with:
>
> ---------------------------------------------------------------------------------
>#!/bin/bash
>#
># Mail-Exchange script f�r zeder.steigbachtal.de
>
># hole Mails und autentifiziere dich via POP3
> echo starte POP3 Prozess...
> touch /var/MailRoot/.psync-trigger
>
># Warte 20 Sekunden bis POP3-Authentifizierung passiert ist
> sleep 20
>
># starte SMTP
> echo starte SMTP Prozess...
> /var/MailRoot/bin/CtrlClnt -s zeder.steigbachtal.de -u administrator -p password
>"etrn" "*"
The use of * delimited by "" will cause an expansion by the shell, use '*' instead.
> echo script hat fertig
> ---------------------------------------------------------------------------------
>
> The POP is startet and i get my mails from Outside.
>
> With "netstat -ct" i can see the connections to the POP-Accounts, and,
> after 20 sec. i see the script connecting to Xmail's service port. But
> no SMTP to outside occurs.
>
> The same behavior is, when i telnet to the service port and give the
> command "etrn" by Hand.
> The response is always:
>
> etrn *
> +00000 OK
> "ETRN" "*"
> +00000 OK
>
> The following Output i got from XMail by doing this:
>
> 1. Start XMail with above script for debugging.
> 2. Write an E-Mail from local Account to my T-Online Address.
> 3. Dial in an wait until fetchnews is ready
> 4. Start above Mailexchange script.
> 5. Telnet to Serviceport of Xmail and "etrn"
> 6. Force XMail to shut down with ^C
>
> ----------------------------------------------------------------------------------
> SMAIL thread [00] started
> [XMail 1.0 (Linux/Ix86) CTRL Server] started
> [XMail 1.0 (Linux/Ix86) POP3 Server] started
> [XMail 1.0 (Linux/Ix86) ESMTP Server] started
> [XMail 1.0 (Linux/Ix86) PSYNC Server] started
> [XMail 1.0 (Linux/Ix86) FINGER Server] started
> LMAIL thread [00] started
> LMAIL thread [01] started
> LMAIL thread [02] started
> POP3 client connection from [127.0.0.1]
> POP3 client exit [127.0.0.1]
> POP3 client connection from [127.0.0.1]
> POP3 client exit [127.0.0.1]
> SMTP client connection from [127.0.0.1]
> SMTP client exit [127.0.0.1]
> SMAIL SMTP-Send MX = "post.strato.de" SMTP = "zeder.steigbachtal.de" From =
>"[EMAIL PROTECTED]" To =
> "[EMAIL PROTECTED]"
> <<
> ErrCode = -40
> ErrString = Invalid server address
> ErrInfo = post.strato.de
> SMAIL SMTP-Send MX = "post.strato.de" SMTP = "zeder.steigbachtal.de" From =
>"[EMAIL PROTECTED]" To =
> "[EMAIL PROTECTED]" Failed !
>>>
> [PSYNC] entry
> [PSYNC] entry
> [PSYNC] entry
> [PSYNC] User = "Albert" - Domain = "zeder.steigbachtal.de"
> [PSYNC] User = "Albert" - Domain = "zeder.steigbachtal.de"
> [PSYNC] User = "Albert" - Domain = "zeder.steigbachtal.de"
> [PSYNC] exit
> [PSYNC] exit
> SMAIL local SMTP = "zeder.steigbachtal.de" From = <[EMAIL PROTECTED]> To =
><[EMAIL PROTECTED]>
> [PSYNC] exit
> CTRL client connection from [127.0.0.1]
> SMAIL SMTP-Send MX = "post.strato.de" SMTP = "zeder.steigbachtal.de" From =
>"[EMAIL PROTECTED]" To =
> "[EMAIL PROTECTED]"
> <<
> ErrCode = -40
> ErrString = Invalid server address
> ErrInfo = post.strato.de
> SMAIL SMTP-Send MX = "post.strato.de" SMTP = "zeder.steigbachtal.de" From =
>"[EMAIL PROTECTED]" To =
> "[EMAIL PROTECTED]" Failed !
>>>
> CTRL client exit [127.0.0.1]
> [PSYNC] entry
> [PSYNC] User = "Albert" - Domain = "zeder.steigbachtal.de"
> [PSYNC] entry
> [PSYNC] User = "Albert" - Domain = "zeder.steigbachtal.de"
> [PSYNC] entry
> [PSYNC] User = "Albert" - Domain = "zeder.steigbachtal.de"
> [PSYNC] exit
> [PSYNC] exit
> [PSYNC] exit
> CTRL client connection from [127.0.0.1]
> SMAIL SMTP-Send MX = "post.strato.de" SMTP = "zeder.steigbachtal.de" From =
>"[EMAIL PROTECTED]" To =
> "[EMAIL PROTECTED]"
> <<
> ErrCode = -40
> ErrString = Invalid server address
> ErrInfo = post.strato.de
> SMAIL SMTP-Send MX = "post.strato.de" SMTP = "zeder.steigbachtal.de" From =
>"[EMAIL PROTECTED]" To =
> "[EMAIL PROTECTED]" Failed !
>>>
> CTRL client exit [127.0.0.1]
> [PSYNC] entry
> [PSYNC] User = "Albert" - Domain = "zeder.steigbachtal.de"
> [PSYNC] entry
> [PSYNC] User = "Albert" - Domain = "zeder.steigbachtal.de"
> [PSYNC] entry
> [PSYNC] User = "Albert" - Domain = "zeder.steigbachtal.de"
> [PSYNC] exit
> [PSYNC] exit
> [PSYNC] exit
> CTRL client connection from [127.0.0.1]
> SMAIL SMTP-Send MX = "post.strato.de" SMTP = "zeder.steigbachtal.de" From =
>"[EMAIL PROTECTED]" To =
> "[EMAIL PROTECTED]"
> <<
> ErrCode = -40
> ErrString = Invalid server address
> ErrInfo = post.strato.de
> SMAIL SMTP-Send MX = "post.strato.de" SMTP = "zeder.steigbachtal.de" From =
>"[EMAIL PROTECTED]" To =
> "[EMAIL PROTECTED]" Failed !
>>>
> CTRL client exit [127.0.0.1]
> CTRL client connection from [127.0.0.1]
> SMAIL SMTP-Send MX = "post.strato.de" SMTP = "zeder.steigbachtal.de" From =
>"[EMAIL PROTECTED]" To =
> "[EMAIL PROTECTED]"
> <<
> ErrCode = -40
> ErrString = Invalid server address
> ErrInfo = post.strato.de
> SMAIL SMTP-Send MX = "post.strato.de" SMTP = "zeder.steigbachtal.de" From =
>"[EMAIL PROTECTED]" To =
> "[EMAIL PROTECTED]" Failed !
>>>
> CTRL client exit [127.0.0.1]
> LMAIL thread [02] exiting
> LMAIL thread [02] stopped
> LMAIL thread [01] exiting
> LMAIL thread [01] stopped
> LMAIL thread [00] exiting
> LMAIL thread [00] stopped
> [XMail 1.0 (Linux/Ix86) FINGER Server] stopped
> [XMail 1.0 (Linux/Ix86) PSYNC Server] stopped
> [XMail 1.0 (Linux/Ix86) ESMTP Server] stopped
> [XMail 1.0 (Linux/Ix86) POP3 Server] stopped
> [XMail 1.0 (Linux/Ix86) CTRL Server] stopped
> SMAIL thread [00] exiting
> SMAIL thread [00] stopped
> XMail 1.0 (Linux/Ix86) server stopped
> ----------------------------------------------------------------------------
>
> Sorry for this longish Message, but these are the Informations i have,
> and i think it's better to give all Infos immediately. (if your
> crystal bowl is in repair ;-) )
Actually the SMTP traffic happens, XMail find the MX record ( probably cached ) but
it cannot resolve the name.
Is the DNS visible at the time of the ETRN ?
- Davide