[xmail] Help about slow mail sending (could it be Xmail configuration related, or not?)

2009-09-22 Thread Stefano Pascucci
Hi all

I use xmailserver since many years withou any kind of trouble, but 
since few months I'm experiencing some oddness in mail sending, so 
I'm here to ask you help to understand if it can be related to 
xmailserver wrong configuration, or if it depends on other stuffs.

The problem I have is the excessive delay in mail sending when using 
php scripts to send an email.

The machine is win2000 server, with php 4.4.9 and IIS 5

Using a standard mailer client (outolook, pegasus or any other one), 
all seems to go fine (I can't see any delay in mail sending)

When I try to use a script, I have the delay.

I have tested it in various scenarious:

1) NOCC webmail interface: if I write an email using a web browser, 
after sending it I have ~30-35 seconds of delay before receiving the 
next webpage indicating that the email has been sent.

2) joomla websites: after completing an order or filling & sending a 
form, the confirmation webpage (shown when the mail associated to the 
order or to the form has been sent) arrive to my browser after ~30-35 
second of delay

3) os commerce websites: the same as point 2

I'm not a mailserver and php scripts expert, so I can't understand if 
this situation may be related to something wrong in xmailserver 
configuration, or to normal operation performed by the system (i.e., 
a delay due to the time the mailserver requires to reach and scan the 
internet spamlist we use to reduce spam) or to any other possible 
wrong configuration in my system.

My goal is to reduce this delay to a reasonable time: I have to setup 
some ecommerce websites, and I can't ask to the customer to wait for 
30-40 seconds before receiving a reply from a website :-)

I hope someone could help me :-)

Thank you in advance

Regards

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] Help about slow mail sending (could it be Xmail configuration related, or not?)

2009-09-22 Thread Davide Libenzi
On Tue, 22 Sep 2009, Stefano Pascucci wrote:

> Hi all
> 
> I use xmailserver since many years withou any kind of trouble, but 
> since few months I'm experiencing some oddness in mail sending, so 
> I'm here to ask you help to understand if it can be related to 
> xmailserver wrong configuration, or if it depends on other stuffs.
> 
> The problem I have is the excessive delay in mail sending when using 
> php scripts to send an email.
> 
> The machine is win2000 server, with php 4.4.9 and IIS 5
> 
> Using a standard mailer client (outolook, pegasus or any other one), 
> all seems to go fine (I can't see any delay in mail sending)
> 
> When I try to use a script, I have the delay.
> 
> I have tested it in various scenarious:
> 
> 1) NOCC webmail interface: if I write an email using a web browser, 
> after sending it I have ~30-35 seconds of delay before receiving the 
> next webpage indicating that the email has been sent.
> 
> 2) joomla websites: after completing an order or filling & sending a 
> form, the confirmation webpage (shown when the mail associated to the 
> order or to the form has been sent) arrive to my browser after ~30-35 
> second of delay
> 
> 3) os commerce websites: the same as point 2
> 
> I'm not a mailserver and php scripts expert, so I can't understand if 
> this situation may be related to something wrong in xmailserver 
> configuration, or to normal operation performed by the system (i.e., 
> a delay due to the time the mailserver requires to reach and scan the 
> internet spamlist we use to reduce spam) or to any other possible 
> wrong configuration in my system.
> 
> My goal is to reduce this delay to a reasonable time: I have to setup 
> some ecommerce websites, and I can't ask to the customer to wait for 
> 30-40 seconds before receiving a reply from a website :-)

You should probably ask who wrote the PHP code ;)
Does the PHP sender use sendmail to send an email, or it uses SMTP 
directly?
IMO such delay is related to DNS queries, either to get the host name 
attached to the local XMail server IP, or to resolve CustMapsList queries.
Try to disable RDNS checks inside the server.tab, and also empty 
CustMapsList, and see if it helps. If it does, your DNS/network config is 
the problem.


- Davide


___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


[xmail] Smarthost

2009-09-22 Thread Yan Seiner
I'm a total xmail newbie so I'm struggling a bit with the basics.

I am trying to set up xmail on an embedded platform running linux.  The
machine in question will collect information and periodically email a
status report via a smarthost.

The platform has a sporadic connection to the outside world.

I'd like to configure xmail to
1) spool any email it receives from the internal network
2) on connection, run the queue (this will be handled by the ifup script)

The smarthost uses TLS and requires authentication.  How do I configure
xmail to do that?

Thanks,

--Yan

-- 
   o__
   ,>/'_ o__
   (_)\(_)   ,>/'_  o__
A day may come  (_)\(_) ,>/'_  o__
when the courage of men fails, (_)\(_) ,>/'_  o__
when we forsake our friends and break all (_)\(_) ,>/'_
bonds of fellowship, but it is not this day. But it is not this day! (_)\(_)

This day we ride!

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] Smarthost

2009-09-22 Thread Davide Libenzi
On Tue, 22 Sep 2009, Yan Seiner wrote:

> I'm a total xmail newbie so I'm struggling a bit with the basics.
> 
> I am trying to set up xmail on an embedded platform running linux.  The
> machine in question will collect information and periodically email a
> status report via a smarthost.
> 
> The platform has a sporadic connection to the outside world.
> 
> I'd like to configure xmail to
> 1) spool any email it receives from the internal network
> 2) on connection, run the queue (this will be handled by the ifup script)
> 
> The smarthost uses TLS and requires authentication.  How do I configure
> xmail to do that?

Do you really need a mail server to do that?
You can just collect your information and shoot an email to the smart-host 
when the connection comes up (via post-up scripts).
IMO no need to setup a mail server.



- Davide


___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] Smarthost

2009-09-22 Thread Yan Seiner

On Tue, September 22, 2009 3:25 pm, Davide Libenzi wrote:
> On Tue, 22 Sep 2009, Yan Seiner wrote:
>
>> I'm a total xmail newbie so I'm struggling a bit with the basics.
>>
>> I am trying to set up xmail on an embedded platform running linux.  The
>> machine in question will collect information and periodically email a
>> status report via a smarthost.
>>
>> The platform has a sporadic connection to the outside world.
>>
>> I'd like to configure xmail to
>> 1) spool any email it receives from the internal network
>> 2) on connection, run the queue (this will be handled by the ifup
>> script)
>>
>> The smarthost uses TLS and requires authentication.  How do I configure
>> xmail to do that?
>
> Do you really need a mail server to do that?
> You can just collect your information and shoot an email to the smart-host
> when the connection comes up (via post-up scripts).
> IMO no need to setup a mail server.

I've been struggling with that. But the smarthost requires TLS
authentication, and what with spooling the messages and then sending them,
it's a bit of a stretch for me to write all that in a script.  Plus the
whole thing of retries if the connection goes down in the middle of a
transmission, and all that.

I was hoping to find a ready-made solution and nothing else seems to
support both spooling and SSL and presumably retries if the message send
fails.

--Yan

-- 
   o__
   ,>/'_ o__
   (_)\(_)   ,>/'_  o__
A day may come  (_)\(_) ,>/'_  o__
when the courage of men fails, (_)\(_) ,>/'_  o__
when we forsake our friends and break all (_)\(_) ,>/'_
bonds of fellowship, but it is not this day. But it is not this day! (_)\(_)

This day we ride!

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] Smarthost

2009-09-22 Thread Davide Libenzi
On Tue, 22 Sep 2009, Yan Seiner wrote:

> 
> On Tue, September 22, 2009 3:25 pm, Davide Libenzi wrote:
> > On Tue, 22 Sep 2009, Yan Seiner wrote:
> >
> >> I'm a total xmail newbie so I'm struggling a bit with the basics.
> >>
> >> I am trying to set up xmail on an embedded platform running linux.  The
> >> machine in question will collect information and periodically email a
> >> status report via a smarthost.
> >>
> >> The platform has a sporadic connection to the outside world.
> >>
> >> I'd like to configure xmail to
> >> 1) spool any email it receives from the internal network
> >> 2) on connection, run the queue (this will be handled by the ifup
> >> script)
> >>
> >> The smarthost uses TLS and requires authentication.  How do I configure
> >> xmail to do that?
> >
> > Do you really need a mail server to do that?
> > You can just collect your information and shoot an email to the smart-host
> > when the connection comes up (via post-up scripts).
> > IMO no need to setup a mail server.
> 
> I've been struggling with that. But the smarthost requires TLS
> authentication, and what with spooling the messages and then sending them,
> it's a bit of a stretch for me to write all that in a script.  Plus the
> whole thing of retries if the connection goes down in the middle of a
> transmission, and all that.

For SSL, there are modules (Perl, but I bet you can find them in almost 
any scripting language), like:

http://search.cpan.org/~gbarr/libnet-1.22/Net/SMTP.pm
http://search.cpan.org/~cwest/Net-SMTP-SSL-1.01/lib/Net/SMTP/SSL.pm
http://search.cpan.org/~fayland/Email-Send-SMTP-TLS-0.03/lib/Email/Send/SMTP/TLS.pm

They support TLS and ESMTP authentication AFAIK.
If using XMail (that IMO is overkill for this), you will need to setup a 
queue retry policy so that messages live in the queue long enough to see a 
connection coming up. Plus, you will still need to issue an ERTN command 
to flush the queue while the connection is up.



- Davide


___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail