Re: [xmail] XMail forum moved - pls update your bookmarks

2011-12-14 Thread Davide Libenzi
On Mon, 12 Dec 2011, Harald Schneider wrote:

> 
> The XMail forum moved from
> 
> http://xmailforum.homelinux.net
> 
> to
> 
> http://xmailforum.marketmix.com
> 
> Please update your bookmarks ASAP.

Done. Sorry for the delay.


- Davide


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


Re: [xmail] Returned mail: Data format error

2011-08-07 Thread Davide Libenzi
On Sun, 7 Aug 2011, sander...@eye-catcher.com wrote:

> Dear user of xmailserver.org, Mail system administrator of xmailserver.org 
> would like to let you know the following:
> 
> We have found that your e-mail account has been used to send a huge amount of 
> junk email messages during this week.
> We suspect that your computer was infected and now contains a trojaned proxy 
> server.
> 
> Please follow the instruction in order to keep your computer safe.
> 
> Virtually yours,
> The xmailserver.org team.

Do NOT open this one.


- Davide

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


Re: [xmail] POP3 session getting stuck because of missing newline

2011-07-27 Thread Davide Libenzi
On Sun, 24 Jul 2011, Ivo Smits wrote:

> Hello Davide,

Hi!


> Sometimes my POP3 client (Mozilla Thunderbird) does no longer receive new
> messages from my XMail server. Some investigation shows that when the client
> attempts to retrieve (RETR) a particular e-mail, and XMail sends the message,
> the end-of-message marker is NOT on a line by itself, but rather added onto
> the last line of the message. It appears that the spool file for this
> particular message does also not have a newline at the end of the file, while
> other messages do. I think that this might be related.
> 
> I am not sure why sometimes such an e-mail has no newline at the end of the
> file. This particular e-mail was SPAM, and was modified by SpamAssassin (with
> some helper script to deal with the XMail header). This might have stripped
> off the newline.
> 
> However, even if the problem was caused by my antispam solution, I think that
> a crippled spool file should not break the POP3 session. Would it make sense
> to you to add a check to XMail to detect missing newlines (as well as
> incorrect end-of-message markers) while sending a message via POP3 (or SMTP)?

This is certainly a corruption induced by mail handlers poking within the 
XMail internal spool files.
SPAM messages are just like every other message, and they get properly 
terminated by newlines.
A missing newline is no different from any other form of corruption, 
which, whatever handlers are piled up directly poking into the XMail 
internal spool, are not supposed to generate.
A fix in whatever thing causing the issue is more likely a better place, 
isn't it?


- Davide


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


Re: [xmail] Can Xmail smtp forward to external web-based acconts ?

2011-05-26 Thread Davide Libenzi
On Thu, 26 May 2011, Spyros Tsiolis wrote:

> Hello,
> 
> What the subject says.
> I have an XMail/Dovecot/Horde installation at a clients' site.
> They will buy themselves some blackberries/iphones etc and they want
> the messages arriving to their respective XMail accounts forwarded to
> web-based accounts (gmail/hotmail/yahoo etc.).
> 
> Is it possible from XMail to tell it that for user X, it should also send a
> copy to x...@hotmail.com ?

A "redirect" plus a "mailbox" in the mailproc.tab of such users should do it.


- Davide


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


Re: [xmail] Problem sending mail to a domain

2011-03-03 Thread Davide Libenzi
On Thu, 3 Mar 2011, Ladislav Sedivy wrote:

> Hello all,
> I have a problem sending mail (with xmail) to x...@scisolutions.com. Looking 
> at
> the output from dig it seems like their DNS server is screwed up.  However, I
> have no problem sending from gmail?  Any ideas?

I simple dig returns MXs:

davide@davide-lnx1:~$ dig scisolutions.com mx

; <<>> DiG 9.7.1-P2 <<>> scisolutions.com mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47824
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 2

;; QUESTION SECTION:
;scisolutions.com.  IN  MX

;; ANSWER SECTION:
scisolutions.com.   1664IN  MX  10 mail.scisolutions.com.
scisolutions.com.   1664IN  MX  10 mail2.scisolutions.com.

;; ADDITIONAL SECTION:
mail.scisolutions.com.  1664IN  A   64.95.136.15
mail2.scisolutions.com. 1664IN  A   64.95.136.17

;; Query time: 0 msec
;; SERVER: 10.254.58.55#53(10.254.58.55)
;; WHEN: Thu Mar  3 17:54:50 2011
;; MSG SIZE  rcvd: 109



But a "trace" one gives constantly errors:

davide@davide-lnx1:~$ dig scisolutions.com mx +trace

; <<>> DiG 9.7.1-P2 <<>> scisolutions.com mx +trace
;; global options: +cmd
..  13921   IN  NS  c.root-servers.net.
..  13921   IN  NS  i.root-servers.net.
..  13921   IN  NS  k.root-servers.net.
..  13921   IN  NS  d.root-servers.net.
..  13921   IN  NS  j.root-servers.net.
..  13921   IN  NS  b.root-servers.net.
..  13921   IN  NS  g.root-servers.net.
..  13921   IN  NS  a.root-servers.net.
..  13921   IN  NS  h.root-servers.net.
..  13921   IN  NS  m.root-servers.net.
..  13921   IN  NS  e.root-servers.net.
..  13921   IN  NS  f.root-servers.net.
..  13921   IN  NS  l.root-servers.net.
;; Received 417 bytes from 10.254.58.55#53(10.254.58.55) in 0 ms

com.172800  IN  NS  a.gtld-servers.net.
com.172800  IN  NS  b.gtld-servers.net.
com.172800  IN  NS  c.gtld-servers.net.
com.172800  IN  NS  d.gtld-servers.net.
com.172800  IN  NS  e.gtld-servers.net.
com.172800  IN  NS  f.gtld-servers.net.
com.172800  IN  NS  g.gtld-servers.net.
com.172800  IN  NS  h.gtld-servers.net.
com.172800  IN  NS  i.gtld-servers.net.
com.172800  IN  NS  j.gtld-servers.net.
com.172800  IN  NS  k.gtld-servers.net.
com.172800  IN  NS  l.gtld-servers.net.
com.172800  IN  NS  m.gtld-servers.net.
;; Received 497 bytes from 199.7.83.42#53(l.root-servers.net) in 78 ms

scisolutions.com.   172800  IN  NS  ns2.scheduling.com.
scisolutions.com.   172800  IN  NS  ns.scheduling.com.
;; Received 112 bytes from 192.54.112.30#53(h.gtld-servers.net) in 147 ms

;; connection timed out; no servers could be reached





- Davide


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


Re: [xmail] xmail split multi mail to multi recipient

2011-03-01 Thread Davide Libenzi
On Tue, 1 Mar 2011, Rittikorn wrote:

> Dear All
> 
> 
> I has 1 problem Now I setup Xmail like a Mail server and I has postfix do as
> mail gateway
> I use smtpfwd.tab to forward email to mail gateway, but I found problem when I
> send to multi recipient
> the email that send out from Xmail it split to one by one
> 
> ex. client send mail to 10 recipient <1 email>
> 
> smtp gateway receive email from XMail 10 Email
> 
> I need smtp gateway receive only 1 Email from Xmail, How can i do, Thank you

XMail allows you to have per-recipient independent actions, which would 
not be possible if the email was left as single blob.


- Davide


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


Re: [xmail] suspicious mail behaviour; don't know what to make of it . . .

2011-02-27 Thread Davide Libenzi
On Sun, 27 Feb 2011, Spyros Tsiolis wrote:

> > Date: Sat, 26 Feb 2011 13:05:35 -0800
> > From: davi...@xmailserver.org
> > To: xmail@xmailserver.org
> > Subject: Re: [xmail] suspicious mail behaviour; don't know what to make of 
> > it . . .
> >
> > On Sat, 26 Feb 2011, Spyros Tsiolis wrote:
> >
> > > Hi Bart,
> > >
> > > Thank you kindly for this.
> > > So, what you're saying is that someone managed to guess the user password 
> > > for that specific
> > > XMail
> > > account (which BTW, the password was the same as the user ! - whoops !) 
> > > and managed to
> > > do his worst ?
> >
> > Or, it is that user itself that sends SPAM.
> >
> >
> >
> > - Davide
> >
> >
> > ___
> > xmail mailing list
> > xmail@xmailserver.org
> > http://xmailserver.org/mailman/listinfo/xmail
> 
> Hi Davide,
> 
> No, no way. Users have achieved such level of mentality as to not do damage 
> to their
> own system :-)
> This is definitely automated by someone from the outside.
> How he managed to get access to the mailserver on the DMZ, I am still trying
> to find that one out (If I even find anything).

Well, if the password was same as user, that's the first thing brute force 
methods try.


- Davide


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


Re: [xmail] suspicious mail behaviour; don't know what to make of it . . .

2011-02-26 Thread Davide Libenzi
On Sat, 26 Feb 2011, Spyros Tsiolis wrote:

> Hi Bart,
> 
> Thank you kindly for this.
> So, what you're saying is that someone managed to guess the user password for 
> that specific
> XMail
> account (which BTW, the password was the same as the user ! - whoops !) and 
> managed to
> do his worst ?

Or, it is that user itself that sends SPAM.



- Davide


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


Re: [xmail] "SmartDNSHost" and "ErrCode = -117"

2011-01-24 Thread Davide Libenzi
On Wed, 22 Sep 2010, fcxm...@aquinet.net wrote:

> Hello Davide
> 
> Due to too many 'dns zone' with dns servers responding badly, causing normal
> xmail dns mx resolver to fail with "no domain or misconfigured dns servers",
> and since manual lookups using our internal dns give the good response, I
> tried to set SmartDNSHost
> 
> Then, doing so I have some problems sending to some 'sub' domains like the
> example bellow :
> 
> ErrCode   = -117
> ErrString = DNS recursion not available
> SMAIL SMTP-Send EDNS = "MOH.GOV.MY" SMTP = "X" From = "XXX@XXX" To =
> "x...@moh.gov.my" Failed !
> SMTP-Error = "DNS recursion not available"
> SMTP-Server = "MOH.GOV.MY"
> 
> 
> SmartDNSHost entry is like this :
> "SmartDNSHost""aaa.bbb.ccc.ddd:udp;aaa.bbb.ccc.ddd:tcp"
> 
> The same internal dns server is used as a redirector dns server for our
> internal network, and any internal workstation can resolve the mx for this
> domain with success
> 
> What can be the cause ?

Long delay answer :)
When you add something to the SmartDNSHost, XMail believes that is a 
"friendly" DNS host, which can resolve recursive queries for it.
So XMail sets the recursion bit in the DNS query, which the error above 
show it being rejected by the server.


- Davide


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


Re: [xmail] Knowing who is failing Auth Logins

2011-01-24 Thread Davide Libenzi
On Wed, 19 Jan 2011, Rob Arends wrote:

> Hello,
> 
> I’m running xmail 1.27 on RHEL5.5
> 
> The SMTP logs are showing a single AUTH=EFAIL:TYPE=LOGIN every hour at xx:00 
> hours.
> 
> It is coming from the same PC I believe, although IP changes, the ISP and 
> area indicated by the
> rDNS suggests it is the same PC.
> 
> Most mail clients attempt POP3 more than once an hour, so I’m suspicious.
> 
> The logs don’t indicate the username in the login attempt.
> 
> Is there any way to report on the username that is being used in the attempt.
> 
> If nothing else I can contact the user. 
> 
> However if it is a low speed dictionary attack, I’d like to be able to 
> identify that and take
> some action.

Yeah, I can see that as being useful. Will add to my queue.

- Davide

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


Re: [xmail] 5xx errors in SMAIL log

2011-01-05 Thread Davide Libenzi
On Wed, 5 Jan 2011, Francesco Vertova wrote:

> Hi all (and happy new year),
> 
> I saw lines like these in the SMAIL log:
> 
> "tsd.unifi.it""1294151990810.a28.880.25d715.dex1" "L1C7667" 
> "[PRIVATE]"
> "[PRIVATE]"   "SMTP"  "gmail-smtp-in.l.google.com." "2011-01-04 15:36:46"
> "5.5.1 Unrecognized command. a11si22710935wer.104"
> "tsd.unifi.it""1294151991384.a28.880.25d722.dex1" "L1C7667" 
> "[PRIVATE]"
> "[PRIVATE]"   "SMTP"  "mx1.mail.eu.yahoo.com.""2011-01-04 15:36:49"
> "Command Unimplemented"
> 
> Looks like XMail picked up a file from /spool/local containing a single-dot
> line and tried to send it untouched. It tried again and again before giving up
> and, as a result, non-local recipients got multiple copies of the same
> (truncated) mail, so in a sense delivery was successful ...
> 
> IMHO: if the LMAIL client is supposed to escape leading dots, XMail should
> take care of unescaping them in LOCAL delivery (and should validate spool
> files better ... and documentation of LMAIL files format should be updated
> ...).
> 
> Alternatively, XMail should take care of escaping leading dots when doing SMTP
> delivery of files picked up by LMAIL.

You are right. Either SendMail.cpp should do it, or XMail.


- Davide


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


Re: [xmail] IMAP vs POP3 double e-mail messages

2010-12-18 Thread Davide Libenzi
On Thu, 16 Dec 2010, tenskwatawa wrote:

> Hi all,
> i try explain my problem with IMAP and POP3 behavior on my Xmail 1.26.
> I use Dovecot as IMAP4 server and Xmail server as POP3 and SMTP
> 
> All new e-mails are placed in new folder on my maildir.
> When I connect to mailbox with IMAP client all messages are moved to cur
> folder. But when I connect to mailbox with POP3 client all massages are still
> in new folder.
> And now two problems
> 1.If I don’t use Pop3ScanCur - POP3 client download only messages from new
> folder. And it is ok, but if I use IMAP client (for example Webmail) between
> POP3 session I don have all mails on my POP3 client.
> 2.If I use Pop3ScanCur – and IMAP client sessions between POP3 client
> session, I receive double messages in POP3 client.
> 
> Is it possible to Pop3 after download move messages to cur folder or something
> else to eliminate my problems?
> Thank you for all who can help me!
> Sorry if it is stupid question - Im new Xmail user.

Do you always get double messages, or only at times?


- Davide

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


Re: [xmail] rpm

2010-12-18 Thread Davide Libenzi
On Thu, 16 Dec 2010, mattias wrote:

> Any rpm for xmail?

No, I stopped making RPMs some time ago.


- Davide


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


Re: [xmail] weird error message

2010-11-27 Thread Davide Libenzi
On Wed, 17 Nov 2010, Spyros Tsiolis wrote:

> 
> > From: spy...@hotmail.com
> > To: xmail@xmailserver.org
> > Date: Tue, 16 Nov 2010 17:54:51 +
> > Subject: [xmail] weird error message
> >
> > Hello list,
> >
> > OK, I have a new weird message that I don't know know what to make of.
> >
> > I recently migrated an XMail pop3/smtp system to both XMail and dovecot.
> > I 've done this on two sites. It's working like a charm.
> > Until today.
> > I am trying to send a message to a friend (working on the other site that 
> > got
> > migrated to XMail and dovecot) and the message comes back with the 
> > following :
> >
> >
> > 
> > [<00>] XMail bounce: rcpt=[s...@domain.gr];Error=[552 Requested mail action 
> > aborted: exceeded
> storage allocation - ]
> >
> > [<01>] Error sending message [1289928825150.b7b25b90.94d.325532.mailgate] 
> > from [mydomain.gr].
> > ID:        
> > Mail From: 
> > Rcpt To:   
> > Server:     [xx.xx.xx.xx]
> >
> > [<02>] The reason of the delivery failure was:
> > 552 Requested mail action aborted: exceeded storage allocation - 
> > 
> >
> > [<05>] Here is listed the initial part of the message:
> >  (and so on . . . )
> > 
> >
> > Now, I've checked the users' mailbox and there's nothing in there . Nothing 
> > !
> > No mail ! No files ! Nada !
> > However, from wherever I try to send a message (a yahoo account I have, this
> > hotmail account or my .gr account from my domain), it comes back with the
> > "exceeded storage allocation" message.
> > Ever a couple of other people tried it and it comes back with the same.
> >
> > Any ideas and help would be greatly apprecitated.
> >
> > Regards,
> >
> > Spyros
> 
> Well, this is me actually replying to my own message :-)
> Looks like the problem was the "MaxMbSize" variable under
> "/var/MailRoot/domains/domain/user" for each inidividual user.
> There is a user.tab file, that you have to access and change the
> "MaxMbSize" to whatever the admin desires.
> This field is something that is disregarded by an MUA like
> outlook; However if one invokes software like dovecot, he / she
> must be carefull and tweak this.

Of course it is ignored by MUAs like Outlook, as it is an XMail local 
setup :)



- Davide

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


Re: [xmail] Problems sending e-mails

2010-11-13 Thread Davide Libenzi
On Sat, 13 Nov 2010, Ib H. Rasmussen wrote:

> 
> Hi List
> 
> I have been using xmail as a mail-relay for some years now. Unfortunately my 
> ISP has changed
> SMTP setup from normal SMTP, port 25 to ASMTP port 587, and at the same time 
> is plain text
> userid, password authentication required to connect to the ASMTP-server.
> 
> Is xmail able to do this, and if so how do I set it up ?

Did you check this?

http://www.xmailserver.org/Readme.html#smtp_client_authentication



- Davide


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


Re: [xmail] problem with mx ip selection on retries

2010-11-07 Thread Davide Libenzi
On Wed, 3 Nov 2010, fcxm...@aquinet.net wrote:

> >-Message d'origine-
> >De : xmail-boun...@xmailserver.org
> >[mailto:xmail-boun...@xmailserver.org]de la part de Davide Libenzi
> >Envoye : mercredi 3 novembre 2010 03:46
> >A : XMail Users Mailing List
> >Objet : Re: [xmail] problem with mx ip selection on retries
> >
> >
> >On Tue, 2 Nov 2010, fcxm...@aquinet.net wrote:
> >
> >>
> >> Hello Davide
> >>
> >> I found an problem in xmail when re-trying to connect to mx
> >with multiple
> >> ips
> >>
> >> Here is a sample :
> >> Assuming domain XX.com have this dns setup
> >>
> >> xx.com mx 10   mx10.xx.com
> >> xx.com mx 20   mx20.xx.com
> >>
> >> mx10.xx.comA   10.10.10.1
> >> mx10.xx.comA   10.10.10.2
> >> mx10.xx.comA   10.10.10.3
> >>
> >> mx20.xx.comA   20.20.20.1
> >> mx20.xx.comA   20.20.20.2
> >>
> >> supposing xmail have now to send a mail @xx.com
> >> on first try it use mx10.xx.com at 10.10.10.1 : now the tcp
> >connection don't
> >> work
> >> then os same first try xmail use mx20 at 20.20.20.2 :
> >suppose tcp connection
> >> don't work too !
> >>
> >> What i see in a trace is that for ALL the others retries for
> >this mail,
> >> xmail retries ONLY on SAME ips, 10.10.10.1 and 20.20.20.2
> >> It never retry on others mx's ips !! And because there was
> >no response from
> >> these two ips, mail bounced back to sender after all
> >possible retries :-/
> >> (i checked the others ips, they responded correctly :-/ but
> >xmail never
> >> tried them ...)
> >>
> >> I think this is a major bug :(
> >
> >Does not look like.  XMail would cache (in the MX cache) the *names*,
> >which are mx10.xx.com and mx20.xx.com (and, for the duration
> >of the TTL).
> >Then the names are resolved to IP addresses using OS specific library
> >calls (getaddrinfo()).
> >
> 
> So, I don't understand why using nslookup on the xmail server itself
> resolving mx10.xx.com i get all the mx10 ips values round robined :
> nslookup mx10.xx.com
>   10.10.10.2  10.10.10.3  10.10.10.1
> another immediate nslookup mx10.xx.com
>   10.10.10.3  10.10.10.1  10.10.10.2
> another
>   10.10.10.1  10.10.10.2  10.10.10.3
> 
> Notice that in the real domain case the dns records default ttl was 2 hours,
> no ttl specified in the mx records (so default 2 hours) and none in the A
> records too (so default 2 hours)
> 
> With xmail retry schedule configured with Qt 300 Qi 1 Qr 10 the retry
> schedule was :
> 01  send-time = 0  (00:00:00)   next-try = 300(00:05:00)
> 02  send-time = 300(00:05:00)   next-try = 600(00:10:00)
> 03  send-time = 900(00:15:00)   next-try = 1200   (00:20:00)
> 04  send-time = 2100   (00:35:00)   next-try = 2400   (00:40:00)
> 05  send-time = 4500   (01:15:00)   next-try = 4800   (01:20:00)
> 06  send-time = 9300   (02:35:00)   next-try = 9600   (02:40:00)
> 07  send-time = 18900  (05:15:00)   next-try = 19200  (05:20:00)
> 08  send-time = 38100  (10:35:00)   next-try = 38400  (10:40:00)
> 09  send-time = 76500  (21:15:00)   next-try = 76800  (21:20:00)
> 10  send-time = 153300 (42:35:00)   next-try = 153600 (42:40:00)
> 
> So after retry 05 the next retry is more than 2 hours later, so chance to
> get same lookups in same order for mx10 and simutanenously the same ip for
> mx20 seems minimal or very 'bad' coincidence.
> And notice that exact same think occured for all mails for this domain. One
> day more than 20 mails was in xmail queue for retries to this domain, and
> all was blocked by same mx's not responding 'bad' ip ! very bad 'chance' to
> get same ips :/
> 
> The dns server is a bind 9 server on same machine, the xmail use it with
> smartdnshost entry in server.tab
> Trying with no smartdnshost didn't change anythink, nor changing local dns
> address to another 'external' dns server with or without smartdnshost entry
> in xmail.
> In all configurations, nslookups allways returned the mx ips in round robin
> manner even if done at less than the dns entry ttl (here 2 hours) so how to
> explain xmail 'use' the same IP ?
> 
> Do you think OS getaddrinfo (here win32 windows 2000 sp4 patched) return the
> same think in same order (sorting them and returning only the first ip) ?
> Supposing nslookup and dig don't use getaddrinfo but use direct dns
> connections (and i think it is), how to test OS getaddrinfo ?

I think I found it.
Friggen getaddrinfo() sort results returned by the system DNS servers, 
instead of returning them as in response order. Duh!
Need to look into fixing this ...



- Davide



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


Re: [xmail] Multiple outbound smtp connections

2010-11-02 Thread Davide Libenzi
On Wed, 6 Oct 2010, Cesar Meloni wrote:

> I have a similar problem.
> Some users need send mail to some domains such as yahoo or hotmail, for some 
> reason the emails
> to these domains were transferred at very low speed, making global mail queue 
> slow.
> I managed to solve it by raising a new instance of XMail, with only the SMTP 
> port number 1025
> and the following parameters: "-Md -P- -B- -Sp 1025 -X- -Qn 3 -Y- -F- -C- -W- 
> -Ll -Pl -Sl -Ql
> -Yl -Fl"
> in smtprelay.tab file only the line: "127.0.0.1"  "255.255.255.255"
> And in original XMail the following configuration:
> smtpfwd.tab:
> "*yahoo.com""127.0.0.1:1025"
> "*hotmail.com""127.0.0.1:1025"
> 
> so you can separate these emails in an alternative queue with 3 simultaneous 
> connections form
> SMTP.

Very smart work-around.  I hope you remembered to not make both XMail 
instances point to the same MAIL_ROOT though ...




> 2010/10/6 
> 
>   Hi Bill
> 
>   I have the same problem too from some days with 'orange/wanadoo' here in
>   France then some of my customers send 'little' newletters for max 10 
> final
>   users to orange/wanadoo (really not spam).
>   Now, they servers limit incoming connections to about maximum 3 incoming
>   sessions at a time
>   (xmail does send same mail at once (one mail to, multiple rcpt to) to 
> same
>   final domain)
> 
>   At this time there is only one solution in xmail, the -Qn cmd line 
> option
>   limiting 'global' xmail output threads (so limiting in fact max 
> simultaneous
>   outgoing connections)
> 
>   BUT as noted, it affect xmail for ANY destination, so at this time, my
>   server regulary have many mails waiting for first attemps to delever ! 
> and
>   is slow to send mails :(
> 
>   So I have allmost the same question to Davide : could it be possible to 
> say
>   xmail to 'slow down' when sending to specific final domains mx servers 
> (use
>   of smtpfwd.tab with new options, max conns or delay between each conns 
> ?)
>   letting normal -Qn do its job for others domains ?
>   Or a new -QMXn saying no more than n simultaneous connections at the 
> same
>   time per unique final mx ?
> 
>   Francis
> 
> 
> 
>   >-Message d'origine-
>   >De : xmail-boun...@xmailserver.org
>   >[mailto:xmail-boun...@xmailserver.org]de la part de Bill Healy
>   >Envoye : mercredi 6 octobre 2010 07:52
>   >A : 'xmail@xmailserver.org'
>   >Objet : [xmail] Multiple outbound smtp connections
> >
> >
> >How many connections will xmail make to a particular server at one time
> >if there are many messages to deliver to the same domain? And
> >is there a
> >way to limit the number if the answer is more than a few?
> >
> >Reason I ask is that mail to a particular domain is being delayed by a
> >temporary error saying there are "too many connections" try later. The
> >people in charge of said server say that xmail must be making more than
> >5 connections to one server or 3 to another of their servers
> >to get that
> >message.
> >
> >I've looked through the docs and can't find any way to limit the number
> >of simultaneous connections to a server, is there such a setting? I
> >thought there was, but can't find it.
> >
> >Thanks,
> > Bill
> >
> >___
> >xmail mailing list
> >xmail@xmailserver.org
> >http://xmailserver.org/mailman/listinfo/xmail
> >
> 
> ___
> xmail mailing list
> xmail@xmailserver.org
> http://xmailserver.org/mailman/listinfo/xmail
> 
> 
> 
> 


- Davide


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


Re: [xmail] problem with mx ip selection on retries

2010-11-02 Thread Davide Libenzi
On Tue, 2 Nov 2010, Sabahattin Gucukoglu wrote:

> On 2 Nov 2010, at 11:25,   wrote:
> > I found an problem in xmail when re-trying to connect to mx with multiple
> > ips
> > 
> > Here is a sample :
> > Assuming domain XX.com have this dns setup
> > 
> > xx.com  mx 10   mx10.xx.com
> > xx.com mx 20mx20.xx.com
> > 
> > mx10.xx.com A   10.10.10.1
> > mx10.xx.com A   10.10.10.2
> > mx10.xx.com A   10.10.10.3
> > 
> > mx20.xx.com A   20.20.20.1
> > mx20.xx.com A   20.20.20.2
> > 
> > supposing xmail have now to send a mail @xx.com
> > on first try it use mx10.xx.com at 10.10.10.1 : now the tcp connection don't
> > work
> > then os same first try xmail use mx20 at 20.20.20.2 : suppose tcp connection
> > don't work too !
> > 
> > What i see in a trace is that for ALL the others retries for this mail,
> > xmail retries ONLY on SAME ips, 10.10.10.1 and 20.20.20.2
> > It never retry on others mx's ips !! And because there was no response from
> > these two ips, mail bounced back to sender after all possible retries :-/
> > (i checked the others ips, they responded correctly :-/ but xmail never
> > tried them ...)
> > 
> > I think this is a major bug :(
> 
> It's not violating the standard, but in the interests of robustness, I 
> agree that it is a problem.  See:
> http://tools.ietf.org/html/rfc5321#section-5
> 
> Another peculiar XMail behaviour is that even if the hostname in an MX 
> record is unknown, XMail logs an error but then tries again.  This only 
> makes sense if the recipient fixes his MX records, which I think is more 
> likely if the mail is permanently failed rather than temporarily.  In 
> Postfix, it's user-configurable which method is used.  Again, no 
> violation of the spec, but my preference is for a behaviour that is 
> somewhat more robust, especially today with spam-filled queues 
> everywhere.

Note that if the remote domain would properly implement RR DNS, the issue 
would not arise, as the IP list would be permuted at every lookup.
Of course, people does RR DNS with TTL of one day, which kinda defeats the 
purpose.
XMail could do its own random-pickup in the supplied list, but this is 
really not its own task.



- Davide


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


Re: [xmail] problem with mx ip selection on retries

2010-11-02 Thread Davide Libenzi
On Tue, 2 Nov 2010, fcxm...@aquinet.net wrote:

> 
> Hello Davide
> 
> I found an problem in xmail when re-trying to connect to mx with multiple
> ips
> 
> Here is a sample :
> Assuming domain XX.com have this dns setup
> 
> xx.commx 10   mx10.xx.com
> xx.com mx 20  mx20.xx.com
> 
> mx10.xx.com   A   10.10.10.1
> mx10.xx.com   A   10.10.10.2
> mx10.xx.com   A   10.10.10.3
> 
> mx20.xx.com   A   20.20.20.1
> mx20.xx.com   A   20.20.20.2
> 
> supposing xmail have now to send a mail @xx.com
> on first try it use mx10.xx.com at 10.10.10.1 : now the tcp connection don't
> work
> then os same first try xmail use mx20 at 20.20.20.2 : suppose tcp connection
> don't work too !
> 
> What i see in a trace is that for ALL the others retries for this mail,
> xmail retries ONLY on SAME ips, 10.10.10.1 and 20.20.20.2
> It never retry on others mx's ips !! And because there was no response from
> these two ips, mail bounced back to sender after all possible retries :-/
> (i checked the others ips, they responded correctly :-/ but xmail never
> tried them ...)
> 
> I think this is a major bug :(

Does not look like.  XMail would cache (in the MX cache) the *names*, 
which are mx10.xx.com and mx20.xx.com (and, for the duration of the TTL).
Then the names are resolved to IP addresses using OS specific library 
calls (getaddrinfo()).



- Davide


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


Re: [xmail] setting up xmail 1.27 , needs help

2010-10-31 Thread Davide Libenzi
On Sun, 31 Oct 2010, Ralf Moeller wrote:

> 
> it works now, I didnt saw exim4 was running
> and blocking the ports. cause no logentry and no
> error-message was provided, I cannot know directly
> why it dont work.
> 
> thanks anyway. :-)

Thenext time running XMail from a terminal, in debug mode (using "XMail 
-Md -debug ...") can help you better in diagnosng the problem.


- Davide


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


Re: [xmail] [Not yet solved] Problem with PSYNC aborts

2010-09-29 Thread Davide Libenzi
On Wed, 22 Sep 2010, Norman Heintz wrote:

> On 2010/08/15 19:52, Spyros Tsiolis wrote:
> 
> > You say the message is about 32Mb ?
> > Silly question ; Have you checked that XMail is happy to relay a 32Mb
> message ?
> > Two places to look at :
> > . server.tab and
> > . /var/MailRoot/domains/domain.com/user/user.tab
> > "MaxMBSize""number"
> >
> > Hope this helps,
> >
> > s.
> 
> I had tried the nightly sync with "MaxMessageSize"[TAB]"20" -
> without success. The same problem as before: PSYNC stops at the
> mentioned message with the header I posted on Tue, 10 Aug 2010 to the
> list here.
> 
> 
> >> > users doesn't use their provider accounts. Could take one or two days. I 
> >> > will
> >> > post the result.
> > This is only checked when the message enters with inbound SMTP, not with 
> > PSYNC.
> > 
> > 
> > - Davide
> 
> Right. Has no effect on PSYNC.
> 
> Have you any further idea how to get the problem solved?

Please guys, be patient for a little.  I am in the middle of a relocation 
and I have limited personal worstation access ATM.
Will get back to it ASAP.


- Davide


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


Re: [xmail] IPv6

2010-09-20 Thread Davide Libenzi
On Mon, 20 Sep 2010, q0...@cuba.ionum.ch wrote:

>  I upgraded from 1.26 to 1.27, messages are now delivered to mailboxes, but
> filters-in are not firing (ipv6 masks?), found nothing in docs

That'd be a good guess.  But, I am in the middle of a relocation this and 
next week, so I won't have time to look into it in this time frame.
Will get to it afterward.


- Davide

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


Re: [xmail] IPv6

2010-09-17 Thread Davide Libenzi
On Fri, 17 Sep 2010, q0...@cuba.ionum.ch wrote:

>  No, i cleared all filter tab-files for debugging. server accepts mail, writes
> smtp-log-entry, then the message disappears (no trace in spool or elsewhere,
> no error). but if i you need a sample ipv6-message i can save a copy through
> pre-data-filter.

Yes, please.


- Davide


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


Re: [xmail] IPv6

2010-09-17 Thread Davide Libenzi
On Fri, 17 Sep 2010, q0...@cuba.ionum.ch wrote:

>  Hi List,
> 
> have someone ever tried to use xmail with IPv6? It seems that the messages are
> disappearing after filtering (i would suppose filter cannot handle
> ipv6-format). per-data-filtering works (no ips involved).
> 
> Any hints?

Is the message being rewritten?  If yes, can you save a copy and send it 
to me?


- Davide

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


[xmail] RoundCubeMail password plugin driver

2010-09-16 Thread Davide Libenzi
Helio Cavichiolo Jr has sent me this plugin for RoundCubeMail, in case 
anyone is using (or planning to use) that webmail software:

http://www.cavichiolo.com.br/helio/downloads/?dir=my/RoundCubeMail/Plugins/PasswordDrivers/



- Davide


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


Re: [xmail] GLST

2010-09-14 Thread Davide Libenzi
On Tue, 14 Sep 2010, Phillip R. Shaw wrote:

> Replying late to this, but just now looking at the smtp log file.
> 
> Since Bloglines is closing down I started trying google reader.
> 
> Google does not (always) bind outbound messages to a server/IP. 
> 
> I see one message that came in from servr197 the first time, and then the 
> next two retries for that message came from server69, and the 4th try came 
> from server197.
> The second message had the first two sends from server69, and the third is 
> from servr197.
> 
> Both messages did eventually get delivered, but now I need to go back through 
> the logs to see if I might be dropping some from this.

This could be automated somehow.
By using dbdump and making a reverse lookup of the IP, you can match for 
the domains which are interesting to you (yahoo, google, etc...) and 
automatically add mnet entries.



- Davide


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


Re: [xmail] migrating xmail ; a question

2010-08-31 Thread Davide Libenzi
On Tue, 31 Aug 2010, Spyros Tsiolis wrote:

> Hello people,
> 
> Here's the thing; I've had a box running mail for three domains. One of them 
> I had
> to "split" it from the box (take the "var/MailRoot" tree) and put it on a 
> diferrent one
> on a diferrent subnet.
> 
> Question :
> 
> Do I need to keep the "/var/MailRoot/dnscache/*" stuff or can I rm -rf them ?

A `find /var/MailRoot/dnscache -type f | xargs rm -f` can be issued at any 
time.
Your command above removes the directory structure, which is only create 
at XMail startup time.


- Davide


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


Re: [xmail] xmail on Debian

2010-08-30 Thread Davide Libenzi
On Mon, 30 Aug 2010, Radu Spineanu wrote:

>  A self-compiled version (xmail-1.27.tar.gz) doesn't start either.
>  It just says "Starting XMail Server:" and hangs there :-(
>  What could be the reason?
> >>>
> >>> In /var/log/syslog the following error is reported:
> >>>
> >>> Aug 30 05:44:16 s1 XMail[5142]: Failed to create for eventfd
> >>
> >> You're in a situation where libc has the include file, but eventfd is not 
> >> implemented.
> >> Remove the "-DHAS_EVENTFD" string from Makefile.lnx and rebuild.
> > 
> > Which kernel are you using (run `uname -a`)?
> > Which glibc version (run `/lib/libc.so.6`)?
> > 
> 
> Could it be some missing dependency maybe?

Yes, between a shiny new EGLIBC and fairly old Linux kernel.


- Davide


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


Re: [xmail] xmail on Debian

2010-08-30 Thread Davide Libenzi
On Mon, 30 Aug 2010, U.Mutlu wrote:

> On 2010-08-30 16:51, Davide Libenzi wrote:
> > On Mon, 30 Aug 2010, Davide Libenzi wrote:
> > 
> > > On Mon, 30 Aug 2010, rm wrote:
> > > 
> > > > On 2010-08-30 05:55, rm wrote:
> > > > > A self-compiled version (xmail-1.27.tar.gz) doesn't start either.
> > > > > It just says "Starting XMail Server:" and hangs there :-(
> > > > > What could be the reason?
> > > > 
> > > > In /var/log/syslog the following error is reported:
> > > > 
> > > > Aug 30 05:44:16 s1 XMail[5142]: Failed to create for eventfd
> > > 
> > > You're in a situation where libc has the include file, but eventfd is not
> > > implemented.
> > > Remove the "-DHAS_EVENTFD" string from Makefile.lnx and rebuild.
> > 
> > Which kernel are you using (run `uname -a`)?
> > Which glibc version (run `/lib/libc.so.6`)?
> 
> 
> The 'machine' is a rented VPS box.
> Recently I upgraded the OS from Debian 5 (lenny) to 6 (squeeze)
> using "apt-get upgrade". Unfortunately on this VPS I cannot/maynot
> change the kernel.
> 
> I guess the following block in Makefile.lnx needs to be changed.
> How should it look like?
> 
> ifeq ($(wildcard /usr/include/sys/eventfd.h), )
> SYSSRCS := $(SYSSRCS) SysOsEventfd_pipe.cpp
> else
> SYSSRCS := $(SYSSRCS) SysOsEventfd_eventfd.cpp
> CFLAGS := $(CFLAGS) -DHAS_EVENTFD
> endi
> 
> 
> s1:~# cat /etc/debian_version
> squeeze/sid
> 
> s1:~# uname -a
> Linux s1.**.** 2.6.18-164.15.1.el5.028stab068.9 #1 SMP Tue Mar 30 18:07:38
> MSD 2010 i686 GNU/Linux
> 
> s1:~# /lib/libc.so.6
> GNU C Library (Debian EGLIBC 2.11.2-2) stable release version 2.11.2, by
> Roland McGrath et al.
> Copyright (C) 2009 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
> Compiled by GNU CC version 4.4.4.
> Compiled on a Linux 2.6.32 system on 2010-06-24.
> Available extensions:
>   crypt add-on version 2.1 by Michael Glad and others
>   GNU Libidn by Simon Josefsson
>   Native POSIX Threads Library by Ulrich Drepper et al
>   BIND-8.2.3-T5B
> For bug reporting instructions, please see:
> <http://www.debian.org/Bugs/>.

You are running a new glibc, with an old kernel (which does not provide 
eventfd).
You should really try to fetch a kernel newer than one that is more than 3 
years old.


- Davide


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


Re: [xmail] xmail on Debian

2010-08-30 Thread Davide Libenzi
On Mon, 30 Aug 2010, Davide Libenzi wrote:

> On Mon, 30 Aug 2010, rm wrote:
> 
> > On 2010-08-30 05:55, rm wrote:
> > > A self-compiled version (xmail-1.27.tar.gz) doesn't start either.
> > > It just says "Starting XMail Server:" and hangs there :-(
> > > What could be the reason?
> > 
> > In /var/log/syslog the following error is reported:
> > 
> > Aug 30 05:44:16 s1 XMail[5142]: Failed to create for eventfd
> 
> You're in a situation where libc has the include file, but eventfd is not 
> implemented.
> Remove the "-DHAS_EVENTFD" string from Makefile.lnx and rebuild.

Which kernel are you using (run `uname -a`)?
Which glibc version (run `/lib/libc.so.6`)?


- Davide

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


Re: [xmail] xmail on Debian

2010-08-30 Thread Davide Libenzi
On Mon, 30 Aug 2010, rm wrote:

> On 2010-08-30 05:55, rm wrote:
> > A self-compiled version (xmail-1.27.tar.gz) doesn't start either.
> > It just says "Starting XMail Server:" and hangs there :-(
> > What could be the reason?
> 
> In /var/log/syslog the following error is reported:
> 
> Aug 30 05:44:16 s1 XMail[5142]: Failed to create for eventfd

You're in a situation where libc has the include file, but eventfd is not 
implemented.
Remove the "-DHAS_EVENTFD" string from Makefile.lnx and rebuild.
Unless changes have been made to the Debian package, I would go ahead and 
proceed with manual setup.
Other than that, it should work just fine (be sure the ports that XMail 
will bind to for its services, are not used by other deamons).
The xmailserver.org mailing lists run over Debian just fine.


- Davide

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


Re: [xmail] Problem with PSYNC aborts

2010-08-18 Thread Davide Libenzi
On Mon, 16 Aug 2010, xmail-l...@renergeteq.org wrote:

> > 
> > > Date: Mon, 9 Aug 2010 17:56:08 +0200
> > > From: xmail-l...@renergeteq.org
> > > To: xmail@xmailserver.org
> > > Subject: [xmail] Problem with PSYNC aborts
> > > 
> > > There is the possibility to delete the mentioned message, sure. But what
> > > if there's a new one? How to get the XMail server to a reliable
> > > operation? I'm out of ideas now...
> > > 
> > > Thank you in advance for your help.
> > > 
> > > 
> > > Best Regards,
> > > 
> > > Norman
> > 
> > Hi Norman,
> > 
> > You say the message is about 32Mb ?
> > Silly question ; Have you checked that XMail is happy to relay a 32Mb
> > message ?
> > Two places to look at :
> > . server.tab and
> > . /var/MailRoot/domains/domain.com/user/user.tab
> >  "MaxMBSize""number"
> > 
> > Hope this helps,
> > 
> The "user.tab" was right from the beginning, but it seems there could be the
> problem in "server.tab":
> 
> "MaxMessageSize"[TAB]"20"
> 
> and I tip so...
> I will try a nightly sync with a more appropriate message limit while the
> users doesn't use their provider accounts. Could take one or two days. I will
> post the result.

This is only checked when the message enters with inbound SMTP, not with 
PSYNC.


- Davide


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


Re: [xmail] GLST

2010-08-16 Thread Davide Libenzi
On Tue, 10 Aug 2010, Edinilson - ATINET wrote:

> Sorry Davide, but I don´t understand very well.
> Is or not is a good idea to use glst nowadays?
> 
> I´m using the following configuration in glst.conf:
> 
> mnet=0.0.0.0,0.0.0.0,255.255.255.0
> 
> xnet=65.48.0.0,255.248.0.0
> xnet=216.239.32.0,255.255.224.0
> xnet=64.233.160.0,255.255.224.0
> xnet=66.249.80.0,255.255.240.0
> xnet=72.14.192.0,255.255.192.0
> xnet=209.85.128.0,255.255.128.0
> xnet=66.102.0.0,255.255.240.0
> xnet=74.125.0.0,255.255.0.0
> 
> rejmsg=451 4.7.1 Please try again later
> generr=0
> rejerr=3
> timeo=1200
> exptimeo=3110400
> lametimeo=28800

GLST is a life saver on my side.  It cuts a lot of SPAM and worms out 
there.
I have to admit I do not keep my xnets updated very frequently though.



- Davide

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


Re: [xmail] Problem with PSYNC aborts

2010-08-10 Thread Davide Libenzi
On Mon, 9 Aug 2010, xmail-l...@renergeteq.org wrote:

> Hi all,
> 
> I have this problem with XMail server:
> 
> My setup is a local XMail server (v 1.27) with Dovecot for internal email
> storage on an embedded NAS system "QNAP TS-459 Pro" on Intel Atom platform.
> XMail polls mails of four user accounts from an external provider server by
> PSYNC and leaves it at the provider's server ("APOP,Leave" in
> "pop3links.tab"). Three of these accounts are working fine, but for one
> account the PSYNC aborts always at the same message on the provider's server
> and at the next PSYNC cycle it doesn't start again, respectively breaks at the
> same message.
> The concerning message on the provider's server is about 32 MBytes (with
> attachment) and has the number of 870 (by manually looking with telnet on the
> provider's POP3-server). The user has a total number of over 2200 messages on
> the provider's server.
> How can i get the user account to work? Maybe the message size is the problem?
> I even tried to increase the PSYNC interval (-Yi command line option) to some
> hours for excluding timing problems, but this doesn't work, too.
> There is the possibility to delete the mentioned message, sure. But what if
> there's a new one? How to get the XMail server to a reliable operation? I'm
> out of ideas now...
> 
> Thank you in advance for your help.

Can you show the 32MB message headers, and the PSYNC line you use to fetch 
such account from?


- Davide


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


Re: [xmail] GLST

2010-08-10 Thread Davide Libenzi
On Mon, 9 Aug 2010, Edinilson - ATINET wrote:

> Hi all,
> 
> Are you using SMTP Grey Listing (GLST module from Davide) with XMail?
> 
> Which range of ips (subnets) are you using in xnet parameter?
> 
> At this moment I´m whitelisting Hotmail and GMail ranges but I don´t know if 
> could be a good idea to whitelist others.

Don't many of them already know about greylisting and make sure outbound 
messages are bound to a given server/IP?


- Davide

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


Re: [xmail] DNS Issues

2010-07-24 Thread Davide Libenzi
On Fri, 23 Jul 2010, Dave Taylor wrote:

> Hi, I'm using an old Xmail 1.21 on Windows server 2003, which has been rock 
> solid for years.
> Recently I've started to see occasional DNS issues where xmail is attempting 
> to send to the A record IP rather than using the MX.
> Looking in the Xmail MX cache folder, it has the correct MX servers for the 
> domain yet still sends to A record.
> One particular domain that causes this issue regularly is kumon.co.uk.  It 
> has 2 mx records (correct in the xmail MX cache) and an A record that points 
> to a different IP.  Xmail connects to the A record, which appears to be 
> running a mail server for some other domain!
> 
> Also, if i turn on the 'check mailer domain' occasionally I get incoming 
> mail rejected as 'your domain has not MX records', even though I can do a 
> manual mx lookup ok.
> 
> I'm running my own Bind 8 DNS server on the same machine (for several years 
> also), I'm thinking there must be some connection or timeout problems 
> somewhere.
> 
> Do you think updating to the latest XMail would improve this?

While I am not sure, there have been numerous changes/fixes to the DNS 
code from 1.21 to 1.27.
I would definitely recommend upgrading to 1.27, besides the DNS issue.


- Davide

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


Re: [xmail] Unable to load spool file

2010-07-06 Thread Davide Libenzi
On Tue, 6 Jul 2010, Edinilson - ATINET wrote:

> Below is a header.

It came almost unreadable here.  Can you please zip the message file and 
send it to me?  Remember to zip it, and not send text file.


- Davide


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


Re: [xmail] Unable to load spool file

2010-07-05 Thread Davide Libenzi
On Mon, 5 Jul 2010, Edinilson - ATINET wrote:

> I can´t see the message because when the log appears in event viewer and 
> follow the link (D:\mailroot\spool\) I didn´t found anything in the 
> directory (the message isn´t there).
> 
> Nothing was changed in this server for +- 1 year (filters, etc).

You can try to to keep the frozen messages, and inspect those giving 
error.
My guess is that's badly formatted (either by mistake or intentionally) 
SPAM.


- Davide

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


Re: [xmail] Unable to load spool file

2010-07-05 Thread Davide Libenzi
On Mon, 5 Jul 2010, Francesco Vertova wrote:

> At 15.47 05/07/10, you wrote:
> 
> > I´m using XMail Win32 for +- 8 years without problems.
> > But, since last week our server is logging several messages like this:
> 
> > ErrCode   = -55
> > ErrString = Invalid spool file
> > Unable to load spool file
> > "\\?\D:\MailRoot\spool\12\3\mess\1278337154020.9a4.4a8.333180.ntserver3"
> > SMTP-Error = "554 Error loading spool file"
> 
> I'v been using XMail on Windows NT/2000/XP since 2003, and the only time I got
> that error was because of an invalid address (RCPT TO:<>) in the header of a
> spool file generated by LMAIL.
> 
> Looks like those spool files are malformed. Do they come from a specific
> sender/server? Are they processed by a specific filter? What does their
> syntax/structure look like?

Yes, can you zip the message (or at least the whole headers plus the first 
line of it) and send it over?


- Davide

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


Re: [xmail] DNS Madness

2010-06-17 Thread Davide Libenzi
On Fri, 18 Jun 2010, Dmitriy Vitoshnov wrote:

> Xmail have folder dnscache.
> I think that there is a copy of the MX-recording with your old IP-address.

Yes, when the MX record's TTL expires, then it'll be fetching the new IP.
Note that this would have happened even with a caching DNS server.


- Davide


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


Re: [xmail] building the source code [giving specific error codes and description]

2010-06-07 Thread Davide Libenzi
On Mon, 7 Jun 2010, GiGi wrote:

> Already had the 'vcvars32.bat' run to set the environment, then nmake /f
> Makefile.win, and got the same errors "Link: fatal error: Link1101:
> incorrect mspdb80.dll version, recheck installation of this product, nmake
> fatal error U1077 : 'link.exe' return code '0x44d' stop", that was already
> done, any specific steps for windows XP ? I am curious about the OS u are
> using for the project. Please anyone built the code on Windows XP help
> specifically.

I built the XMail binaries on XP for the last 6 years.  Only recently I 
switched to Windows 7 for the builds.
I have no idea of the error you are getting, try to see if there are 
traces on the net.


- Davide


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


Re: [xmail] building the source code [giving specific error codes and description]

2010-06-07 Thread Davide Libenzi
On Mon, 7 Jun 2010, GiGi wrote:

> 
> First of all thanks for your reply,
> 
> Second: actually the binaries are not my choice from the beginning; I need to 
> build the source code before I use it, for future
> understanding and customizing i.e. modifying the code then building it.

First, building is as simple as running the 'vcvars32.bat' (which sets the 
MS VC++ environment) and then running 'nmake /f Makefile.win'.
This worked fine for every MS VC++ version I used since 1999.
Second, your company does not show any traces of a company which is even 
rmotely close to one which releases open source code. Are you sure you 
have understood the XMail license correctly?


- Davide

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


Re: [xmail] is this maillist alive? need to configure xmail pop3retrieval

2010-06-01 Thread Davide Libenzi
On Tue, 1 Jun 2010, William Ottley wrote:

> ok, and if i'm correct, that's the sendmail function, right?

Yep.



> On Tue, Jun 1, 2010 at 4:32 PM, Davide Libenzi  
> wrote:
> > On Tue, 1 Jun 2010, William Ottley wrote:
> >
> >> thank you Francis for this information!!!
> >> your the best!
> >
> > Remember that whatever software you use to fetch POP3 messages, you still
> > need to inject emails into the XMail queue, if you want XMail to deliver
> > them.
> >
> >
> >
> >> On Tue, Jun 1, 2010 at 3:10 AM,   wrote:
> >> >
> >> > Two fetchmail like programms that run on win32 :
> >> >
> >> >  mpop : http://mpop.sourceforge.net/
> >> >
> >> > or
> >> >
> >> >  mailfetcher 2 : http://mailfetcher.sourceforge.net/
> >> >
> >> > Francis
> >> >
> >> >
> >> >
> >> >>-Message d'origine-
> >> >>De : xmail-boun...@xmailserver.org
> >> >>[mailto:xmail-boun...@xmailserver.org]de la part de William Ottley
> >> >>Envoye : lundi 31 mai 2010 20:37
> >> >>A : XMail Users Mailing List
> >> >>Objet : Re: [xmail] is this maillist alive? need to configure xmail
> >> >>pop3retrieval
> >> >>
> >> >>
> >> >>hmmm interesting!
> >> >>I saw that  program actually, and then saw that it only saved via
> >> >>emails. so I'll read the documentation on how to use the sendmail
> >> >>function to convert it? and save it into the users mail box?
> >> >>
> >> >>to be honest, with this setup, xmail server will be running as a
> >> >>server for a single email address..
> >> >>
> >> >>thanks for that heads up!
> >> >>
> >> >>Will
> >> >>
> >> >>On Mon, May 31, 2010 at 2:23 PM, Davide Libenzi
> >> >> wrote:
> >> >>> On Mon, 31 May 2010, William Ottley wrote:
> >> >>>
> >> >>>> Hello Davide,
> >> >>>>
> >> >>>> as i stated before, I DID read the manual. and i'm fully
> >> >>aware of the
> >> >>>> PSYNC option.
> >> >>>>
> >> >>>> I'm also aware of a thread I read, where someone wanted the
> >> >>same thing
> >> >>>> as I did, and someone else offered for them to use fetchmail...
> >> >>>> but i can't use fetchmail on my windows system.
> >> >>>>
> >> >>>> so, I was hoping maybe someone figured out how to use xmail to
> >> >>>> have it always running, then maybe implementing a command
> >> >>line manual
> >> >>>> as well?
> >> >>>>
> >> >>>> but. as you have kindly (thank you) stated, this is not
> >> >>possible with
> >> >>>> xmail system, UNLESS I use the PSYNC...
> >> >>>>
> >> >>>> perhaps your aware of some other script? php maybe? or .exe
> >> >>that will
> >> >>>> grab emails and put into the mail folder for xmail?
> >> >>>
> >> >>> Lng time ago (could be 15 years since the last time I
> >> >>used it), I did
> >> >>> this:
> >> >>>
> >> >>> http://www.xmailserver.org/GetMail-1.3.zip
> >> >>>
> >> >>> It fetches POP3 mail and saves them into .eml format.
> >> >>> You could then use XMail's sendmail, to feed messages into the XMail
> >> >>> LMAIL.
> >> >>> But, you'd have to manually figure out which account
> >> >>messages will have to
> >> >>> be fed into.
> >> >>>
> >> >>>
> >> >>>
> >> >>> - Davide
> >> >>>
> >> >>>
> >> >>> ___
> >> >>> xmail mailing list
> >> >>> xmail@xmailserver.org
> >> >>> http://xmailserver.org/mailman/listinfo/xmail
> >> >>>
> >> >>___
> >> >>xmail mailing list
> >> >>xmail@xmailserver.org
> >> >>http://xmailserver.org/mailman/listinfo/xmail
> >> > ___
> >> > xmail mailing list
> >> > xmail@xmailserver.org
> >> > http://xmailserver.org/mailman/listinfo/xmail
> >> >
> >> ___
> >> xmail mailing list
> >> xmail@xmailserver.org
> >> http://xmailserver.org/mailman/listinfo/xmail
> >>
> >
> >
> > - Davide
> >
> >
> > ___
> > xmail mailing list
> > xmail@xmailserver.org
> > http://xmailserver.org/mailman/listinfo/xmail
> >
> >
> ___
> xmail mailing list
> xmail@xmailserver.org
> http://xmailserver.org/mailman/listinfo/xmail
> 


- Davide

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


Re: [xmail] is this maillist alive? need to configure xmail pop3retrieval

2010-06-01 Thread Davide Libenzi
On Tue, 1 Jun 2010, William Ottley wrote:

> thank you Francis for this information!!!
> your the best!

Remember that whatever software you use to fetch POP3 messages, you still 
need to inject emails into the XMail queue, if you want XMail to deliver 
them.



> On Tue, Jun 1, 2010 at 3:10 AM,   wrote:
> >
> > Two fetchmail like programms that run on win32 :
> >
> >  mpop : http://mpop.sourceforge.net/
> >
> > or
> >
> >  mailfetcher 2 : http://mailfetcher.sourceforge.net/
> >
> > Francis
> >
> >
> >
> >>-Message d'origine-
> >>De : xmail-boun...@xmailserver.org
> >>[mailto:xmail-boun...@xmailserver.org]de la part de William Ottley
> >>Envoye : lundi 31 mai 2010 20:37
> >>A : XMail Users Mailing List
> >>Objet : Re: [xmail] is this maillist alive? need to configure xmail
> >>pop3retrieval
> >>
> >>
> >>hmmm interesting!
> >>I saw that  program actually, and then saw that it only saved via
> >>emails. so I'll read the documentation on how to use the sendmail
> >>function to convert it? and save it into the users mail box?
> >>
> >>to be honest, with this setup, xmail server will be running as a
> >>server for a single email address..
> >>
> >>thanks for that heads up!
> >>
> >>Will
> >>
> >>On Mon, May 31, 2010 at 2:23 PM, Davide Libenzi
> >> wrote:
> >>> On Mon, 31 May 2010, William Ottley wrote:
> >>>
> >>>> Hello Davide,
> >>>>
> >>>> as i stated before, I DID read the manual. and i'm fully
> >>aware of the
> >>>> PSYNC option.
> >>>>
> >>>> I'm also aware of a thread I read, where someone wanted the
> >>same thing
> >>>> as I did, and someone else offered for them to use fetchmail...
> >>>> but i can't use fetchmail on my windows system.
> >>>>
> >>>> so, I was hoping maybe someone figured out how to use xmail to
> >>>> have it always running, then maybe implementing a command
> >>line manual
> >>>> as well?
> >>>>
> >>>> but. as you have kindly (thank you) stated, this is not
> >>possible with
> >>>> xmail system, UNLESS I use the PSYNC...
> >>>>
> >>>> perhaps your aware of some other script? php maybe? or .exe
> >>that will
> >>>> grab emails and put into the mail folder for xmail?
> >>>
> >>> Lng time ago (could be 15 years since the last time I
> >>used it), I did
> >>> this:
> >>>
> >>> http://www.xmailserver.org/GetMail-1.3.zip
> >>>
> >>> It fetches POP3 mail and saves them into .eml format.
> >>> You could then use XMail's sendmail, to feed messages into the XMail
> >>> LMAIL.
> >>> But, you'd have to manually figure out which account
> >>messages will have to
> >>> be fed into.
> >>>
> >>>
> >>>
> >>> - Davide
> >>>
> >>>
> >>> ___
> >>> xmail mailing list
> >>> xmail@xmailserver.org
> >>> http://xmailserver.org/mailman/listinfo/xmail
> >>>
> >>___
> >>xmail mailing list
> >>xmail@xmailserver.org
> >>http://xmailserver.org/mailman/listinfo/xmail
> > ___
> > xmail mailing list
> > xmail@xmailserver.org
> > http://xmailserver.org/mailman/listinfo/xmail
> >
> ___
> xmail mailing list
> xmail@xmailserver.org
> http://xmailserver.org/mailman/listinfo/xmail
> 


- Davide

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


Re: [xmail] SMTP on multiple ports

2010-05-31 Thread Davide Libenzi
On Mon, 31 May 2010, Barho? Martin wrote:

> Hello Davide,
> I have two questions.
> 
> 1) What is right syntax for configuring XMAIL services on multiple ports 
> on one IP adress. In manual is "-SI ip[:port]  Bind server to the 
> specified ip address and (optional) port (can be multiple)". If I want 
> to have multiple ports, it is right -SI ip1[:port1] -SI ip1[:port2] or 
> -SI ip1[:port1,port2] or something else? It is not clear from manual.

The most generic supported syntax is, if IP is 1.2.3.4 and port is 999:

[1.2.3.4]:999

This allows support for IPV6 adresses too.
About your question, you need to use:

-SI [IP1]:PORT1 -SI [IP2]:PORT2 ...


> 2) What is right way of using SmtpConfig in SERVER.TAB
> I want to have port 25 open for all SMTP communication - other SMTP 
> servers a authenticated clients. And I want port 587 open only for 
> authenticated clients for mail submission.
> Is the right way to have
> "SmtpConfig-IP1:25"   - without any options
> "SmtpConfig-IP1:587"  "MailAuth"
> 
> Or only one line
> "SmtpConfig-IP1:587"  "MailAuth"
> And port 25 will be implicitly open to all SMTP communication.

First it's looked up "SmtpConfig-IP,PORT", then "SmtpConfig-IP".


- Davide


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


Re: [xmail] is this maillist alive? need to configure xmail pop3 retrieval

2010-05-31 Thread Davide Libenzi
On Mon, 31 May 2010, William Ottley wrote:

> Hello Davide,
> 
> as i stated before, I DID read the manual. and i'm fully aware of the
> PSYNC option.
> 
> I'm also aware of a thread I read, where someone wanted the same thing
> as I did, and someone else offered for them to use fetchmail...
> but i can't use fetchmail on my windows system.
> 
> so, I was hoping maybe someone figured out how to use xmail to
> have it always running, then maybe implementing a command line manual
> as well?
> 
> but. as you have kindly (thank you) stated, this is not possible with
> xmail system, UNLESS I use the PSYNC...
> 
> perhaps your aware of some other script? php maybe? or .exe that will
> grab emails and put into the mail folder for xmail?

Lng time ago (could be 15 years since the last time I used it), I did 
this:

http://www.xmailserver.org/GetMail-1.3.zip

It fetches POP3 mail and saves them into .eml format.
You could then use XMail's sendmail, to feed messages into the XMail 
LMAIL.
But, you'd have to manually figure out which account messages will have to 
be fed into.



- Davide


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


Re: [xmail] is this maillist alive? need to configure xmail pop3 retrieval

2010-05-31 Thread Davide Libenzi
On Mon, 31 May 2010, William Ottley wrote:

> wow. you assume big time.
> 
> ummm wild guess? ummm YEP!
> now that I have, and didn't get the answer, h guess you won't be
> helping me eh?
> 
> this isn't the only mailling list I have been on.
> please don't waste YOUR time, which I know is valuable, and MY time,
> by assuming...
> you know.. ass out of you, and ass out of me?
> 
> Yes I read the docs. I have xmail up and running on a windows box.
> been in the IT industry for over 15 years.. *yawn* RTFM.. yea yea.
> well i did...
> i have it up and running, but for the likes of me, I can't find any
> CLEAR ANSWERS.
> 
> hence... I know this may be a very alien concept for you Davide: I
> thought i'd sign up to the mailling list to see if I can get some
> direction.
> 
> wow, what a concept eh?
> a mailling list so you can ask questions.
> 
> anyhow, enough of the rant (hey, you had it coming, since you made an
> ass out of yourself).
> 
> so, I am humbling asking anyone in this mailling list, that is of
> positive nature, if it IS possible to do the pop3 MANUAL retreival via
> COMMAND LINE, to grap the emails from a remote POP3 account, very
> simular to "fetch mail". I don't want fetchmail, because I don't want
> to install CygWin...
> 
> I want to do this manually, because I'm going to be setting up stunnel
> to send AND  receive emails MANUALLY every 10 minutes.
> 
> if anyone would be so kind as to point me to the right tab, or how to,
> I would be greatly appreciated!

If you'd have read the documentation, you'd have figured out already that, 
from the command line, manually, it is not possible to do so.
PSYNC allows for periodic mail retrieval and distribution, but that's no 
command line or manual.



- Davide


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


Re: [xmail] is this maillist alive? need to configure xmail pop3 retrieval

2010-05-31 Thread Davide Libenzi
On Mon, 31 May 2010, William Ottley wrote:

> Hi all,
> I'm looking to figure out how to manually (every 10 minutes via command line?)
> retrieve pop3 emails from a remote mail server, and to also send
> emails to the same remote server, via command line.

Have you read the documentation at all?  Wild guess, no.


- Davide


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


Re: [xmail] [PATCH] LMAIL: preventing of excessive hdd access

2010-05-26 Thread Davide Libenzi
On Wed, 26 May 2010, Stephan Mueller wrote:

> An update of the patch: I forgot to also close the directory file handle
> which leads to a file descriptor leak.
> 
> Furthermore, I removed the SysRemove() call as I think it is not
> necessary any more - the file is never created if it is not needed. and
> If it is needed, it should not be created.

Heh, it could have been 10 years that I do not touch LMAIL :)
There is no need at all to create the temp file actually, although unless 
you're running LMAIL every 100 milliseconds, it does not really matter.



- Davide



diff --git a/LMAILSvr.cpp b/LMAILSvr.cpp
index ab92383..cfaacd5 100644
--- a/LMAILSvr.cpp
+++ b/LMAILSvr.cpp
@@ -112,8 +112,8 @@ static int LMAILLogEnabled(SHB_HANDLE hShbLMAIL, 
LMAILConfig *pLMAILCfg)
return (ulFlags & LMAILF_LOG_ENABLED) ? 1 : 0;
 }
 
-static int LMAILGetFilesSnapShot(LMAILConfig *pLMAILCfg, long lThreadId, char 
*pszSSFileName,
-int iMaxSSFileName)
+static int LMAILGetFilesSnapShot(LMAILConfig *pLMAILCfg, long lThreadId,
+SysListHead *pHead)
 {
char szSpoolDir[SYS_MAX_PATH];
 
@@ -127,15 +127,7 @@ static int LMAILGetFilesSnapShot(LMAILConfig *pLMAILCfg, 
long lThreadId, char *p
if (hResLock == INVALID_RLCK_HANDLE)
return ErrGetErrorCode();
 
-   UsrGetTmpFile(NULL, pszSSFileName, iMaxSSFileName);
-
-   FILE *pSSFile = fopen(pszSSFileName, "wb");
-
-   if (pSSFile == NULL) {
-   ErrorPush();
-   RLckUnlockSH(hResLock);
-   return ErrorPop();
-   }
+   SYS_INIT_LIST_HEAD(pHead);
 
int iFileCount = 0;
char szSpoolFileName[SYS_MAX_PATH];
@@ -149,27 +141,19 @@ static int LMAILGetFilesSnapShot(LMAILConfig *pLMAILCfg, 
long lThreadId, char *p
 
if ((ulHashValue % (unsigned long) 
pLMAILCfg->lNumThreads) ==
(unsigned long) lThreadId) {
-   fprintf(pSSFile, "%s\r\n", szSpoolFileName);
+   MscLstDatumAddT(pHead, szSpoolFileName,
+   strlen(szSpoolFileName));
++iFileCount;
}
} while (MscNextFile(hFileScan, szSpoolFileName, 
sizeof(szSpoolFileName)));
MscCloseFindFile(hFileScan);
}
-   fclose(pSSFile);
RLckUnlockSH(hResLock);
 
-   if (iFileCount == 0) {
-   SysRemove(pszSSFileName);
-   SetEmptyString(pszSSFileName);
-
-   ErrSetErrorCode(ERR_NO_LOCAL_SPOOL_FILES);
-   return ERR_NO_LOCAL_SPOOL_FILES;
-   }
-
-   return 0;
+   return iFileCount;
 }
 
-static int LMAILRemoveProcessed(LMAILConfig *pLMAILCfg, char const 
*pszListFileName)
+static int LMAILRemoveProcessed(LMAILConfig *pLMAILCfg, SysListHead *pHead)
 {
char szSpoolDir[SYS_MAX_PATH];
 
@@ -183,23 +167,17 @@ static int LMAILRemoveProcessed(LMAILConfig *pLMAILCfg, 
char const *pszListFileN
if (hResLock == INVALID_RLCK_HANDLE)
return ErrGetErrorCode();
 
-   FILE *pSSFile = fopen(pszListFileName, "rb");
-
-   if (pSSFile == NULL) {
-   ErrorPush();
-   RLckUnlockEX(hResLock);
-   return ErrorPop();
-   }
+   SysListHead *pPos;
 
-   char szSpoolFileName[SYS_MAX_PATH];
-
-   while (MscGetString(pSSFile, szSpoolFileName, sizeof(szSpoolFileName) - 
1) != NULL) {
+   for (pPos = SYS_LIST_FIRST(pHead); pPos != NULL;
+pPos = SYS_LIST_NEXT(pPos, pHead)) {
+   LstDatum *pLDm = SYS_LIST_ENTRY(pPos, LstDatum, LLnk);
char szSpoolFilePath[SYS_MAX_PATH];
 
-   sprintf(szSpoolFilePath, "%s%s%s", szSpoolDir, SYS_SLASH_STR, 
szSpoolFileName);
+   sprintf(szSpoolFilePath, "%s%s%s", szSpoolDir, SYS_SLASH_STR,
+   pLDm->Data.pData);
CheckRemoveFile(szSpoolFilePath);
}
-   fclose(pSSFile);
RLckUnlockEX(hResLock);
 
return 0;
@@ -402,7 +380,8 @@ static int LMAILSubmitLocalFile(LMAILConfig *pLMAILCfg, 
const char *pszMailFile,
return 0;
 }
 
-static int LMAILProcessList(LMAILConfig *pLMAILCfg, long lThreadId, char const 
*pszSSFileName)
+static int LMAILProcessList(LMAILConfig *pLMAILCfg, long lThreadId,
+   SysListHead *pHead)
 {
char szSpoolDir[SYS_MAX_PATH];
 
@@ -423,15 +402,15 @@ static int LMAILProcessList(LMAILConfig *pLMAILCfg, long 
lThreadId, char const *
}
SvrReleaseConfigHandle(hSvrConfig);
 
-   FILE *pSSFile;
-   char szSpoolFileName[SYS_MAX_PATH];
+   SysListHead *pPos;
 
-   if ((pSSFile = fopen(pszSSFileName, "rb")) == NULL)
-   return ErrGetErrorCode();
-   while (MscGetString(pSSFile, szSpoolFileName, sizeof(szSpoolFileName) - 
1) != NULL) {
+   for (pPos = SYS_LIST_FIRST(pHead

Re: [xmail] POP3 Server: Disable Plaintext Login

2010-05-22 Thread Davide Libenzi
On Mon, 22 Feb 2010, Sabahattin Gucukoglu wrote:

> Hi,
> 
> It would be nice to have the option of disabling plain USER/PASS POP3 
> logins, without forcing the use of POP3s.  It supports APOP, and STLS, 
> so just as with the control in server.tab over SMTP AUTH mechanisms 
> shown during plain negotiation, it would be nice to offer POP3 
> capability APOP and STLS, not USER, when TLS is not in use; when TLS 
> comes into use, of course, plain logins are allowed again.  This would 
> be very nice in particular if using POP-before-SMTP, since then nearly 
> any piece of software can provide authentication for relaying by POP 
> login first.

And this too, with a new "Pop3NoClearPasswd" option inside the server.tab 
file.


- Davide


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


Re: [xmail] Running TMDA With XMail

2010-05-22 Thread Davide Libenzi
On Thu, 11 Mar 2010, Davide Libenzi wrote:

> On Thu, 11 Mar 2010, Sabahattin Gucukoglu wrote:
> 
> > On 11 Mar 2010, at 18:51, Davide Libenzi wrote:
> > On Thu, 11 Mar 2010, Sabahattin Gucukoglu wrote:
> > >> 1.  Get and configure TMDA.  For outgoing mail you use "smtp" because 
> > >> the sendmail interface doesn't (yet) work (it needs to send from <> 
> > >> which uses a separate argument).
> > > 
> > > Which part is currently missing?
> > 
> > Sorry, looks like I didn't mention it before, it is that the empty argument 
> > is being supplied.  This works, EG with sendmail:
> > sendmail -f '' bounce-recipi...@somewhere.example.org.
> 
> Will look into it.

This is done too.


- Davide


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


Re: [xmail] Relay to different SMTP servers requiring authentication

2010-05-22 Thread Davide Libenzi
On Thu, 4 Mar 2010, Davide Libenzi wrote:

> On Thu, 4 Mar 2010, Colin Johnston wrote:
> 
> > Davide,
> > 
> > These were copied directly from your documentation, which use capitals.
> > Regardless, I've now tried with lower case and I still get the following 
> > error:
> > 
> > ErrCode   = -41
> > ErrString = Bad server response
> > ErrInfo   = 504 5.7.4 Unrecognized authentication type
> > SMAIL SMTP-Send FWD = "smtp.secure.net:587,NeedTLS=1" SMTP = 
> > "xmailserver.test" From = "myacco...@secure.net" To = 
> > "myacco...@secure.net" Failed !
> > SMTP-Error = "504 5.7.4 Unrecognized authentication type"
> > SMTP-Server = "smtp.secure.net:587,NeedTLS=1"
> 
> Sorry, in the case of smtpfwd.tab there is actually an error in the docs, 
> which I still have to decide what to do (align code or align doc). So use, 
> for now:
> 
> "DOMAIN"  "HOST"  "OPTIONS"

This is fixed now.  You can either use the format above, or:

"DOMAIN""HOST1,OPTIONS1;HOST2,OPTIONS2;..."


- Davide


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


Re: [xmail] Forcing Encrypted Session

2010-04-16 Thread Davide Libenzi
On Fri, 16 Apr 2010, Eric Thompson wrote:

> First, let me thank Davide and all who helped develop xmail.  I've been using 
> it happily for many years, and it's
> just a great software.
> 
> I've built a new server, and installed xmail 1.27.  I will need to allow 
> connections from abroad, and I want to
> encrypt the sessions, authentication and mail.  I've been testing, and while 
> TLS will work for me if I set the
> client (seamonkey mail client on a remote server) to use it, xmail also seems 
> to be cheerfully allowing me to
> connect without TLS.  I've read through and tried so many tab-file settings, 
> my eyes are falling out.  I don't
> know what I'm missing.  From the readme, I understood that the following 
> entry, with empty string, would not allow
> connecting without some type of encryption.  ???
> 
> "SmtpNoTLSAuths"  ""

Connections, in TCP/IP terms, are still allowed.  You just can't send 
email if you have SmtpNoTLSAuths as "", and if you force SMTP 
authentication.


- Davide

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


Re: [xmail] XMail + mlmmj

2010-04-13 Thread Davide Libenzi
On Mon, 12 Apr 2010, Sabahattin Gucukoglu wrote:

> On 12 Apr 2010, at 01:29, Davide Libenzi wrote:
> On Thu, 8 Apr 2010, Sabahattin Gucukoglu wrote:
> >> #!/usr/bin/tclsh
> >> set user "sgucukoglu"
> >> 
> >> set first [string first "-" [lindex $argv 1]]
> >> if {$first!=-1} {
> >> incr first
> >> set last [string last "@" [lindex $argv 1]]
> >> if {$last==-1} {
> >> set env(EXT) [string range [lindex $argv 1] $first end]
> >> } else {
> >> incr last -1
> >> set env(EXT) [string range [lindex $argv 1] $first $last]
> >> }
> >> } else {
> >> set env(EXT) ""
> >> }
> >> 
> >> set env(HOME) "/home/$user"
> >> set env(SENDER) [lindex $argv 0]
> >> set env(RECIPIENT) [lindex $argv 1]
> > 
> > Oh, TCL!  Is likely 10+ years I haven't seen a line of it ;)
> 
> Now you're just trolling.  Stop it! :-)
> 
> I know a lot of people don't have Tcl installed which is annoying, but I 
> just can't stomach perl.  It's too full of warts.  Tcl just gets a load 
> of stuff done really quickly without question.

In the company I used to work time ago, I used TCL as scripting language 
for our CAD.  Very easy to integrate into C/C++ software.
I personally like Perl, for the few scripting things I happend to write.


- Davide


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


Re: [xmail] XMail + mlmmj

2010-04-11 Thread Davide Libenzi
On Thu, 8 Apr 2010, Sabahattin Gucukoglu wrote:

> Success!
> 
> Mlmmj requires that the Return-Path and Delivered-To headers show the 
> envelope return and forward addresses.  In XMail create a user, alias user+* 
> to it, and then use a script from mailproc.tab to add these headers (removing 
> any existing ones) and append the spool file's contents past "<>". 
>  That's it!  This does VERP all by itself, no requirement of the MTA (though 
> it doesn't mention it in the docs, duh).
> 
> If you were using my TMDA tip, the script modified for use with TMDA and 
> mlmmj called from TMDA is below.  This script is improved: it uses fcopy to 
> do zero-copy between disk and pipe and it handles headers in-line.
> 
> Feature requests of XMail: SMTP VERP extension, delivery to pipes for Unix 
> mailers!
> 
> Cheers,
> Sabahattin
> 
> #!/usr/bin/tclsh
> set user "sgucukoglu"
> 
> set first [string first "-" [lindex $argv 1]]
> if {$first!=-1} {
> incr first
> set last [string last "@" [lindex $argv 1]]
> if {$last==-1} {
> set env(EXT) [string range [lindex $argv 1] $first end]
> } else {
> incr last -1
> set env(EXT) [string range [lindex $argv 1] $first $last]
> }
> } else {
> set env(EXT) ""
> }
> 
> set env(HOME) "/home/$user"
> set env(SENDER) [lindex $argv 0]
> set env(RECIPIENT) [lindex $argv 1]

Oh, TCL!  Is likely 10+ years I haven't seen a line of it ;)


- Davide


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


Re: [xmail] Large Queue Of Tempfails

2010-04-01 Thread Davide Libenzi
On Thu, 1 Apr 2010, Sabahattin Gucukoglu wrote:

> Hi,
> 
> At any given time I have about 100 mails destined to go nowhere due to 
> forged mail setting off a challenge, because the MX record is just "." 
> or sometimes "dev.null".  It would be nice if such errors were detected 
> immediately.  When these mails are in the queue, any new mail arriving 
> by SMTP is delayed quite noticeably.  Is there anything I can do about 
> this except
> find /var/xmail/MailRoot/spool ! -type d -delete
> from time to time?  Would it be possible to deal with new mail received 
> by SMTP first, then the stuff in rsnd directories?

The command above would be a really bad idea, as it'd nuke the spool :)
On top of that, if you do that when XMail is running, you are going to 
mess up with it, since you are removing content from within its domain.
At the moment you'd need to do it externally, by parsing the spool.
But if you want to remove stuff from it, you better stop XMail before, and 
clean all the associated files inside the spool.



- Davide


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


Re: [xmail] Disable POP3 Locking

2010-03-20 Thread Davide Libenzi
On Thu, 18 Mar 2010, Sabahattin Gucukoglu wrote:

> Hi,
> 
> Would it be possible to have the option in XMail to disable POP3 locks 
> altogether?  So long as every session maintains its state and no mails 
> were removed externally or by the quitting of another POP3 session, 
> multiple client connections shouldn't be a problem, and would be very 
> useful for for instance cell phones that poll while desktops fetch new 
> mail, or 3G connections which are highly flaky and by which their 
> interruption leaves a lock that takes forever to clear.

You are making assumption that are not true.  But sure, if you want to do 
it in your code, just make UsrPOP3Lock() and UsrPOP3Unlock() inside 
UsrUtils.cpp be NOOP.


- Davide


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


Re: [xmail] XMail + Dovecot

2010-03-17 Thread Davide Libenzi
On Wed, 17 Mar 2010, Spyros Tsiolis wrote:

> Hi there,
> 
> I have succesfully managed to make XMail play with dovecot.
> It's quite a procedure.
> If you want details, let me know by answering to my private address.

It'd be a nice service for other XMail users, if you post the 
instructions in the mailing list.> 


- Davide


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


Re: [xmail] Running TMDA With XMail

2010-03-11 Thread Davide Libenzi
On Thu, 11 Mar 2010, Sabahattin Gucukoglu wrote:

> On 11 Mar 2010, at 18:51, Davide Libenzi wrote:
> On Thu, 11 Mar 2010, Sabahattin Gucukoglu wrote:
> >> 1.  Get and configure TMDA.  For outgoing mail you use "smtp" because 
> >> the sendmail interface doesn't (yet) work (it needs to send from <> 
> >> which uses a separate argument).
> > 
> > Which part is currently missing?
> 
> Sorry, looks like I didn't mention it before, it is that the empty argument 
> is being supplied.  This works, EG with sendmail:
> sendmail -f '' bounce-recipi...@somewhere.example.org.

Will look into it.


- Davide


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


Re: [xmail] Running TMDA With XMail

2010-03-11 Thread Davide Libenzi
On Thu, 11 Mar 2010, Sabahattin Gucukoglu wrote:

> In case anybody needs it, here's how to run the TMDA challenge-response 
> and mail filtering system under XMail.  This assumes Unix where users 
> have home directories of their own, with different privileges.  TMDA 
> doesn't work on Windows.  Home page: http://www.tmda.net/
> 
> 1.  Get and configure TMDA.  For outgoing mail you use "smtp" because 
> the sendmail interface doesn't (yet) work (it needs to send from <> 
> which uses a separate argument).

Which part is currently missing?


- Davide


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


Re: [xmail] sendmail wrapper, -oi option

2010-03-08 Thread Davide Libenzi
On Tue, 9 Mar 2010, Sabahattin Gucukoglu wrote:

> On 9 Mar 2010, at 01:34, Davide Libenzi wrote:
> On Sun, 7 Mar 2010, Davide Libenzi wrote:
> >> On Sun, 7 Mar 2010, Sabahattin Gucukoglu wrote:
> >>> What does -F control in XMail?  If used will it override what is already 
> >>> in the From: field?  -f should only change the envelope sender otherwise 
> >>> unless From: doesn't exist, in which case create it.  Sendmail (the real 
> >>> thing) also added Date: and Message-ID, if not present.
> >> 
> >> Did you actually tried it, before posting this?
> 
> TMDA doesn't give control over sendmail's arguments, but actually I 
> tried using all options together, and it broke the wrapper:
> sendmail -...@somewhere.invalid -F'Real Name' m...@sabahattin-gucukoglu.com
> 
> For me this creates a file in spool/temp that is empty, and doesn't move 
> it.  When I lose the -F, it works just fine.

This is because XMail expects the -F parameter to have a different format, 
which I just noticed goes against sendmail format.
XMail expect the -F to be like:

-F'"Davide Libenzi" '

While sendmail wants:

-F"Davide Libenzi" -fdavi...@xmailserver.org

This needs fixing on my side.


- Davide


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


Re: [xmail] sendmail wrapper, -oi option

2010-03-08 Thread Davide Libenzi
On Sun, 7 Mar 2010, Davide Libenzi wrote:

> On Sun, 7 Mar 2010, Sabahattin Gucukoglu wrote:
> 
> > Please can we have the sendmail wrapper know "-oi" to be synonymous with 
> > "-i"?  In practice I don't know any program that uses the sendmail 
> > SMTP-style end-of-message indicator; you could probably get by just 
> > supporting -t and -f.  In the real sendmail, -oi means "-O 
> > IgnoreDots=True".
> 
> The "-i" and "-oi" are already synonymous, and "-f" is already supported.
> 
> 
> > What does -F control in XMail?  If used will it override what is already 
> > in the From: field?  -f should only change the envelope sender otherwise 
> > unless From: doesn't exist, in which case create it.  Sendmail (the real 
> > thing) also added Date: and Message-ID, if not present.
> 
> Did you actually tried it, before posting this?
> XMail adds the Date field, if missing. The MessageID is added 
> automatically by LMAIL.
> The "-F" allows to set the envelope and SMTP "from" (the former if 
> missing).

OTOH I noticed that the documentation about XMail's `sendmail` is quite 
outdated.  Need to be sync with the implementation.


- Davide


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


Re: [xmail] sendmail wrapper, -oi option

2010-03-07 Thread Davide Libenzi
On Sun, 7 Mar 2010, Sabahattin Gucukoglu wrote:

> Please can we have the sendmail wrapper know "-oi" to be synonymous with 
> "-i"?  In practice I don't know any program that uses the sendmail 
> SMTP-style end-of-message indicator; you could probably get by just 
> supporting -t and -f.  In the real sendmail, -oi means "-O 
> IgnoreDots=True".

The "-i" and "-oi" are already synonymous, and "-f" is already supported.


> What does -F control in XMail?  If used will it override what is already 
> in the From: field?  -f should only change the envelope sender otherwise 
> unless From: doesn't exist, in which case create it.  Sendmail (the real 
> thing) also added Date: and Message-ID, if not present.

Did you actually tried it, before posting this?
XMail adds the Date field, if missing. The MessageID is added 
automatically by LMAIL.
The "-F" allows to set the envelope and SMTP "from" (the former if 
missing).


- Davide


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


Re: [xmail] Relay to different SMTP servers requiring authentication

2010-03-04 Thread Davide Libenzi
On Thu, 4 Mar 2010, Colin Johnston wrote:

> Davide,
> 
> These were copied directly from your documentation, which use capitals.
> Regardless, I've now tried with lower case and I still get the following 
> error:
> 
> ErrCode   = -41
> ErrString = Bad server response
> ErrInfo   = 504 5.7.4 Unrecognized authentication type
> SMAIL SMTP-Send FWD = "smtp.secure.net:587,NeedTLS=1" SMTP = 
> "xmailserver.test" From = "myacco...@secure.net" To = "myacco...@secure.net" 
> Failed !
> SMTP-Error = "504 5.7.4 Unrecognized authentication type"
> SMTP-Server = "smtp.secure.net:587,NeedTLS=1"

Sorry, in the case of smtpfwd.tab there is actually an error in the docs, 
which I still have to decide what to do (align code or align doc). So use, 
for now:

"DOMAIN""HOST"  "OPTIONS"


- Davide


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


Re: [xmail] Relay to different SMTP servers requiring authentication

2010-03-03 Thread Davide Libenzi
On Thu, 4 Mar 2010, Colin Johnston wrote:

> Thanks Davide,
> 
> However, could you confirm that I've got the setup basically correct? I've 
> also tried changing the routing to go through stunnel, without TLS, which I 
> know works directly from my email client, but I couldn't get that to work 
> either:
> 
> smtpfwd.tab -
> 
> "secure.net"  "localhost:2525"
> 
> \userauth\smtp\localhost.tab -
> 
> "PLAIN" "myusername" "437687234219932"
> or
> "LOGIN" "myusername" "437687234219932"
> 
> Is my understanding of the use of the userauth\smtp\.tab file correct? 

Partially. Everything is case sensitive in XMail, so, "plain" and "login".



- Davide


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


Re: [xmail] Relay to different SMTP servers requiring authentication

2010-03-03 Thread Davide Libenzi
On Wed, 3 Mar 2010, Colin Johnston wrote:

> I've just downloaded xmail (windows) and I'm trying to set it up to fulfil 
> our specific requirements.
> We only need xmail to relay all mail it receives from local sources, choosing 
> the destination smtp server depending on the destination domain. Local 
> traffic should go via our internal smtp gateway (anonymous, unencrypted) (say 
> internal.net), but external traffic should go via a TLS-encrypted smtp server 
> using a specified username and password (say secure.net). Ideally we'd also 
> like to replace the message body of any email going to an external 
> destination other than secure.net with a simple link or general text.
> 
> To make this work I've set up anonymous relaying from the local network 
> (works OK) and also added entries to the smtpfwd.tab file (this doesn't cover 
> other external addresses but I want to get the basics working first):
> 
> "internal.net" "smtp.internal.net"
> "secure.net" "smtp.secure.net:587,NeedTLS=1"
> 
> However I don't think I can put the authentication details in this file, so 
> I've created another file \userauth\smtp\smtp.secure.net.tab with the 
> following entries:
> 
> "LOGIN" "myusername" "437687234219932"
> 
> (with tabs beween quoted entries)
> 
> Note that I've also tried replacing "LOGIN" with "PLAIN". The password has 
> been created by XMCrypt.
> 
> Sending email destined for internal.net addresses is relayed correctly, but 
> mail sent to secure.net addresses does not get there. The usual error is 
> Client not authenticated, but trying different settings I've also had 
> authorization method errors. I've checked the password and can send mail via 
> secure.net if I use my mail client (unencrypted) routing through a local 
> stunnel daemon rather than xmail.
> 
> Have I got the settings corrent? What else can I do to make this work?

There are two ways to talk TLS in the SMTP world.  SMTPS, which is TLS 
since time zero, or STARTTLS which starts in clear and then uses STARTTLS 
to switch to TLS.
I noticed that XMail at the moment does not support the former, which I 
will add for 1.28.



- Davide


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


Re: [xmail] Mail loops

2010-03-02 Thread Davide Libenzi
On Tue, 2 Mar 2010, Gary Bainbridge wrote:

> I've been using quite an old version of xmail (1.25) quite successfully
> for a couple of years on a Synology server.
> 
> It's been very reliable, but I get the odd message which sticks in the
> spool with the following error:
> 
> >ErrCode = -163
> >ErrString = Mail loop detected
> >Message blocked by mail loop check !
> >SMTP-Error = "554 Message blocked by mail loop check"
> 
> The thing is that I can't see why a mail loop has occurred as it was
> simply an incoming message to me.
> 
> So my two questions are, can anyone explain why these messages get stuck
> when many other messages from the same senders get through? 
> 
> Secondly, is there any way to get these messages out of the spool? Simply
> resubmitting the email (using PHPXmail) doesn't help as the message
> simply gets marked with the same error again and stays in the spool.
> 
> Below is the header from one of the problem emails. Just to explain, my
> ..com domain is the address of my server, whereas the .co.uk domain is
> handled by my ISP who scan the email for spam, then forward it to my .com
> address.

Try to bump up the "MaxMTAOps" variable of the server.tab file ...


- Davide

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


Re: [xmail] XMail 1.27 released

2010-02-26 Thread Davide Libenzi
On Fri, 26 Feb 2010, fred wrote:

> Davide,
> 
> I have just tested this code:
> 
> #include 
> #include 
> 
> int main(void)
> {
>   char num1[80], num2[80];
> 
>   printf("Enter first: ");
>   gets(num1);
>   printf("Enter second: ");
>   gets(num2);
>   printf("The sum is: %ld.", atoll(num1)+atoll(num2));
> 
>   return 0;
> }
> 
> On FreeBSD-4.11 (undefined reference to `atoll') and on FreeBSD-7.2 (OK).
> 
> It looks like FreeBSD-4.11 does not have this function indeed.

How old 4.11 is?


- Davide


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


Re: [xmail] XMail 1.27 released

2010-02-26 Thread Davide Libenzi
On Fri, 26 Feb 2010, fred wrote:

> Hello,
> 
> Yes, it looks like strtoll() is supported:

Thanks! I made all Unixes use strtoll() now.


- Davide


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


Re: [xmail] POP3 Links and Delivered-To, Default User

2010-02-26 Thread Davide Libenzi
On Wed, 17 Feb 2010, Davide Libenzi wrote:

> On Sun, 14 Feb 2010, Sabahattin Gucukoglu wrote:
> 
> > On 14 Feb 2010, at 01:00, Davide Libenzi wrote:
> > > On Sat, 13 Feb 2010, Sabahattin Gucukoglu wrote:
> > >> On 13 Feb 2010, at 11:21, Sabahattin Gucukoglu wrote:
> > >>> Is there any way to make the POP3 sync module perform routing to 
> > >>> mailboxes based on arbitrary headers, like the Postfix Delivered-To: 
> > >>> header, rather than just To, CC, BCC?  This would be good for "Domain 
> > >>> mailboxes" where all mail for a domain goes to one place, where mailing 
> > >>> list traffic may end up, and where it's important to route mail 
> > >>> somewhere even if it doesn't match To, CC or BCC.  And if mail doesn't 
> > >>> match even those headers and any custom ones, it should go to a default 
> > >>> user, so he can handle it rather than it getting lost.
> > >> 
> > >> Okay, sorry, looked more carefully at server.tab, and sure enough there 
> > >> is FetchHdrTags to solve the first half.  So now, how do I specify the 
> > >> default drop behaviour?  Is there something here with custom mail 
> > >> processing to do it with the @domain syntax?
> > > 
> > > Pop3SyncErrorAccount?
> > 
> > I've since realised that the sample tabfiles and docs don't match up, so 
> > I've reread them all over.  Thanks, this works, although feature request 
> > might be, that if you specify a default user for each pop3links.tab entry, 
> > it apply only for that entry, that POP server.  This way you can manage 
> > multiple domain drops with "Unknown" destinations, or /dev/null them.
> 
> Making one (optional) sink per account is a good idea. Will do.

This is in 1.28.



- Davide


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


Re: [xmail] XMail + Dovecot

2010-02-26 Thread Davide Libenzi
On Fri, 26 Feb 2010, Zilon X wrote:

> Hi Davide,
> 
>Thank you for the links - but those are for the Dovecot previous to
> 1.0, and a lot of things changed since.
> Now it does not need to sync user database, but I cannot find a script
> to authenticate by Smtp or Pop, only
> instructions to Postfix or Exim.

Sorry I can't help you, I never used Dovecot.



- Davide


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


Re: [xmail] XMail 1.27 released

2010-02-26 Thread Davide Libenzi
On Fri, 26 Feb 2010, Yasuhiko Kamata wrote:

> Hello, Davide,
> 
> Thanks for good news!
> 
> But I've just found a problem on a bit older Linux system.
> 
> On 1.27, XMail seems to use a eventfd-based event system for faster
> shutdown. But two flags (EFD_NONBLOCK, EFD_CLOEXEC) cannot be used
> (not defined) on Linux kernel earlier than 2.6.27 as described in man
> page (eventfd(3)).
> 
> Since "Makefile.lnx" only checks the existence of "sys/eventfd.h",
> a compilation of XMail-1.27 fails on "Linux < 2.6.27" distributions
> (this failure is caused by glibc header actually).
> 
> I think "Makefile.lnx" should test not only the presence of it,
> but also whether two flags is defined or not.
> 
> So I've just created a very simple patch (just grepping instead of
> checking file) as follows.
> 
> --- xmail-1.27_orig/Makefile.lnx  2010-02-26 12:33:44.0 +0900
> +++ xmail-1.27/Makefile.lnx   2010-02-26 21:42:01.0 +0900
> @@ -44,7 +44,9 @@
>  MAINSRC = MainLinux.cpp
>  SYSSRCS = SysDepLinux.cpp SysDepUnix.cpp
>  
> -ifeq ($(wildcard /usr/include/sys/eventfd.h), )
> +EVENTFD_DEFINE = $(shell grep -ri EFD_NONBLOCK /usr/include/sys/eventfd.h > 
> /dev/null 2>&1 && echo 1)

Done, but this better be:

ifeq ($(shell grep -q EFD_NONBLOCK /usr/include/sys/eventfd.h > /dev/null 2>&1 
&& echo 1), )


- Davide


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


Re: [xmail] XMail + Dovecot

2010-02-26 Thread Davide Libenzi
On Fri, 26 Feb 2010, Zilon X wrote:

> Hi All,
> 
> Please, where can I get info about install XMail and Dovecot 1.2
> with smtp or pop auth?

No Google-Fu? :)

http://www.dovecot.org/list/dovecot/2005-January/006048.html
http://xmailforum.homelinux.net/index.php?showtopic=2354


- Davide


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


Re: [xmail] XMail 1.27 released

2010-02-26 Thread Davide Libenzi
On Fri, 26 Feb 2010, fred wrote:

> Hello Davide,
> 
> Thanks for this new release.
> 
> I have issues building this on FreeBSD-4.11 32bits, here is what happens:
> 
> g++   -D_FILE_OFFSET_BITS=64 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__
> -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAS_SYSMACHINE -D_GNU_SOURCE
> -D_LARGEFILE64_SOURCE -D_POSIX_PTHREAD_SEMANTICS -O2 -o bin/POP3Utils.o -c
> POP3Utils.cpp
> POP3Utils.cpp: In function `int UPopCheckMailboxSize(UserInfo *, SYS_OFF_T *
> = 0)':
> POP3Utils.cpp:156: implicit declaration of function `int atoll(...)'
> gmake: *** [bin/POP3Utils.o] Error 1
> 
> 
> This refers to this line in POP3Utils.cpp:
> 
> SYS_OFF_T llMaxMBSize = Sys_atoi64(pszMaxMBSize) * 1024;

Can you check if at least strtoll() is there?


- Davide


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


Re: [xmail] XMail 1.27 released

2010-02-26 Thread Davide Libenzi
On Fri, 26 Feb 2010, fred wrote:

> Hello Davide,
> 
> Thanks for this new release.
> 
> I have issues building this on FreeBSD-4.11 32bits, here is what happens:
> 
> g++   -D_FILE_OFFSET_BITS=64 -I. -D__UNIX__ -D__BSD__ -D__FREEBSD__
> -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAS_SYSMACHINE -D_GNU_SOURCE
> -D_LARGEFILE64_SOURCE -D_POSIX_PTHREAD_SEMANTICS -O2 -o bin/POP3Utils.o -c
> POP3Utils.cpp
> POP3Utils.cpp: In function `int UPopCheckMailboxSize(UserInfo *, SYS_OFF_T *
> = 0)':
> POP3Utils.cpp:156: implicit declaration of function `int atoll(...)'
> gmake: *** [bin/POP3Utils.o] Error 1
> 
> 
> This refers to this line in POP3Utils.cpp:
> 
> SYS_OFF_T llMaxMBSize = Sys_atoi64(pszMaxMBSize) * 1024;

No atoll() on FreeBSD?!?
In every one of them, or only in older ones?


- Davide


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


Re: [xmail] XMail 1.27 released

2010-02-26 Thread Davide Libenzi
On Fri, 26 Feb 2010, Yasuhiko Kamata wrote:

> Hello, Davide,
> 
> Thanks for good news!
> 
> But I've just found a problem on a bit older Linux system.
> 
> On 1.27, XMail seems to use a eventfd-based event system for faster
> shutdown. But two flags (EFD_NONBLOCK, EFD_CLOEXEC) cannot be used
> (not defined) on Linux kernel earlier than 2.6.27 as described in man
> page (eventfd(3)).
> 
> Since "Makefile.lnx" only checks the existence of "sys/eventfd.h",
> a compilation of XMail-1.27 fails on "Linux < 2.6.27" distributions
> (this failure is caused by glibc header actually).
> 
> I think "Makefile.lnx" should test not only the presence of it,
> but also whether two flags is defined or not.
> 
> So I've just created a very simple patch (just grepping instead of
> checking file) as follows.

Will do that, thanks.




> --- xmail-1.27_orig/Makefile.lnx  2010-02-26 12:33:44.0 +0900
> +++ xmail-1.27/Makefile.lnx   2010-02-26 21:42:01.0 +0900
> @@ -44,7 +44,9 @@
>  MAINSRC = MainLinux.cpp
>  SYSSRCS = SysDepLinux.cpp SysDepUnix.cpp
>  
> -ifeq ($(wildcard /usr/include/sys/eventfd.h), )
> +EVENTFD_DEFINE = $(shell grep -ri EFD_NONBLOCK /usr/include/sys/eventfd.h > 
> /dev/null 2>&1 && echo 1)
> +ifeq ($(EVENTFD_DEFINE), )
> +# ifeq ($(wildcard /usr/include/sys/eventfd.h), )
>  SYSSRCS := $(SYSSRCS) SysOsEventfd_pipe.cpp
>  else
>  SYSSRCS := $(SYSSRCS) SysOsEventfd_eventfd.cpp
> 
> It works fine on openSUSE-11.0 (kernel = 2.6.25.20).
> 
> Best regards,
> 
> -- 
> Yasuhiko Kamata
> E-mail: belphe...@belbel.or.jp
> ___
> xmail mailing list
> xmail@xmailserver.org
> http://xmailserver.org/mailman/listinfo/xmail
> 


- Davide


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


Re: [xmail] Prerelease Versions

2010-02-25 Thread Davide Libenzi
On Fri, 26 Feb 2010, Sabahattin Gucukoglu wrote:

> Where are prerelease versions announced and made available from?  I don't 
> want to have to keep patching.

I just made 1.27 final.


- Davide


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


[xmail] XMail 1.27 released

2010-02-25 Thread Davide Libenzi
XMail 1.27 is out:

http://www.xmailserver.org/

You need the "Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)" 
package from Microsoft, to run XMail Windows binaries.
Quick linky is here:

http://tinyurl.com/89msaj



- Davide


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


Re: [xmail] Delay in delivering

2010-02-25 Thread Davide Libenzi
On Thu, 25 Feb 2010, Emmanuel Gonzalez wrote:

Guys, can you PLEASE use plain/text when writing messages to this mailing 
list?!?


> I found a strange behavior in Xmail for local delivery due to a DNS problem.
> 
> Let me describe first the installation.
> 
>  
> 
> -1- Xmail 1.26 configuration and binaries duplicated from a running platform 
> directly exposed on internet
> 
> -2- This duplicated Xmail has been installed on DMZ (behind a firewall + NAT) 
> : 192.168.1.100
> 
> -3- On firewall : transparent translation of port 110 and 25 to Xmail
> 
>  
> 
> I had the following problems:
> 
> -  Not all mails were going out (some of them being always in retry), 
> others going out?
> 
> -  2 hours for delivery of received mails (even mails sent from local 
> account to another local account)
> 
>  
> 
> Strange behavior:
> 
> -1- If I Stop and Start Xmail, all mails in the spool are finally delivered 
> immediately to mailboxes (but still problem when
> sending)
> 
> -2- after that, again 2 hours minimum for delivery (I can see mails in the 
> spool?)
> 
> -3- If I Stop and Start again Xmail, all mails in the spool are delivered 
> immediately to mailboxes (but still problem when
> sending)
> 
> => I can?t do that every 3 minutes :( and btw still mails that are in retry 
> mode, then after a while, in frozen state.
> 
>  
> 
> After spending time on Xmail queue (thanks to Xmail Queue Manager: GREAT) and 
> looking in the log, I found that Xmail had DNS
> problems.
> 
> I don?t know why because the server is resolving Names with no problem?  
> (dns1 : 192.168.1.20 ; dns2 : 83.144.0.10)
> 
> Googleing  my errors, I found things about DNS recursion (my DNS server 
> 192.168.1.20 was already accepting recursion?)
> 
> What I did is:  uncomment SmartDNSHost and put :
> 
> "SmartDNSHost" " 192.168.1.20:tcp"
> 
>  
> 
> Then, all the message that were not going out started finally to go out and 
> immediately the received mails were delivered.
> 
>  
> 
> -  Question 1:    Why do I need SmartDNSHost ?? In my 
> case, The server running Xmail has already DNS
> servers entries in its TCP/IP configuration
> 
>  
> 
> -  Question 2:    I think there is no link between local 
> delivery and outgoing mails, no ? Why Xmail is not
> delivering immediately received mails, even if Xmail is having problems to 
> send mails due to DNS resolution ??
> 
>  
> 
> On a other network (with DMZ, Firewall, Nat), I have done the same test 
> (Xmail V 1.25) and reproduce this behavior that is
> solved immediately with SmartDNSHost
> 
>  
> 
> No help/solution needed, I just want to understand?

Does the firewall allow direct DNS traffic for hosts behind it?  The fact 
that the server can resolve an address does not mean anything.  XMail, if 
not told otherwise (by SmartDNSHost), resolves names directly, by issuing 
queries from roots down.  And if there are rules in the firewall to not 
allow that, you are going to have problems, unless you use SmartDNSHost 
(or you set an exception for the XMail IP).  Also, you can try the latest 
1.27 pre-release.
The reason why local mail is delayed too, is because if SMAIL thread are 
busy/hung trying to deliver remote messages, they cannot deliver local mail.


- Davide

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


Re: [xmail] Certificate Chains

2010-02-23 Thread Davide Libenzi
On Tue, 23 Feb 2010, Sabahattin Gucukoglu wrote:

> On 23 Feb 2010, at 17:06, Sabahattin Gucukoglu wrote:
> On 23 Feb 2010, at 15:40, Davide Libenzi wrote:
> > On Tue, 23 Feb 2010, Sabahattin Gucukoglu wrote:
> >>> I'm afraid I overlooked something: certificate chains in server.cert.  I 
> >>> add multiple PEM-encoded certificates together, but XMail only presents 
> >>> one of them, the top-most.  How can I provide my certificate followed by 
> >>> an intermediate CA certificate, whose signer is known to OS trust roots?
> >>> 
> >>> In case you're wondering, the cert is from startcom.org.
> >> 
> >> A certificate itself, already contains a chain. So you set your cert as 
> >> server.cert, and add (if not already there) your roots into the "certs" 
> >> subdirectory:
> >> 
> >> http://www.xmailserver.org/Readme.html#ssl_configuration
> > 
> > My certificate is signed by an intermedia CA which is signed by the root 
> > that everybody trusts.  So I have to send to remotely connecting peers a 
> > valid chain containing my cert and then the intermediate and they can check 
> > that the signer of the intermediate is trustable.  The SslUseCertsDir seems 
> > to just be used for client verification, that I do not need, I only want to 
> > present a server cert (I don't know any client that supports supplying a 
> > client cert, actually).  The usual way to do it is to cat together all the 
> > pems in the chain, cert followed by signer followed by signer ... and that 
> > works for my web server and stunnel, both using OpenSSL.  But it doesn't 
> > seem to work for XMail.
> 
> I found it: XMail is using SSL_CTX_use_certificate_file, when it wants 
> to use SSL_CTX_use_certificate_chain_file.  That will give you the 
> behaviour you should have and what I needed.  Please consider that for 
> the next version.  For now I'll just disable STARTTLS in SMTP so remote 
> peers don't try using it and get a broken, unverifiable cert.

Will do, thanks.


- Davide


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


Re: [xmail] Certificate Chains

2010-02-23 Thread Davide Libenzi
On Tue, 23 Feb 2010, Davide Libenzi wrote:

> On Tue, 23 Feb 2010, Sabahattin Gucukoglu wrote:
> 
> > Hi all,
> > 
> > I'm afraid I overlooked something: certificate chains in server.cert.  I 
> > add multiple PEM-encoded certificates together, but XMail only presents one 
> > of them, the top-most.  How can I provide my certificate followed by an 
> > intermediate CA certificate, whose signer is known to OS trust roots?
> > 
> > In case you're wondering, the cert is from startcom.org.
> 
> A certificate itself, already contains a chain. So you set your cert as 
> server.cert, and add (if not already there) your roots into the "certs" 
> subdirectory:
> 
> http://www.xmailserver.org/Readme.html#ssl_configuration

Note though, that if your roots are not available remotely, your cert 
might get rejected by strict servers.


- Davide


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


Re: [xmail] Certificate Chains

2010-02-23 Thread Davide Libenzi
On Tue, 23 Feb 2010, Sabahattin Gucukoglu wrote:

> Hi all,
> 
> I'm afraid I overlooked something: certificate chains in server.cert.  I add 
> multiple PEM-encoded certificates together, but XMail only presents one of 
> them, the top-most.  How can I provide my certificate followed by an 
> intermediate CA certificate, whose signer is known to OS trust roots?
> 
> In case you're wondering, the cert is from startcom.org.

A certificate itself, already contains a chain. So you set your cert as 
server.cert, and add (if not already there) your roots into the "certs" 
subdirectory:

http://www.xmailserver.org/Readme.html#ssl_configuration


- Davide


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


Re: [xmail] POP3 Links and Delivered-To, Default User

2010-02-17 Thread Davide Libenzi
On Sun, 14 Feb 2010, Sabahattin Gucukoglu wrote:

> On 14 Feb 2010, at 01:00, Davide Libenzi wrote:
> > On Sat, 13 Feb 2010, Sabahattin Gucukoglu wrote:
> >> On 13 Feb 2010, at 11:21, Sabahattin Gucukoglu wrote:
> >>> Is there any way to make the POP3 sync module perform routing to 
> >>> mailboxes based on arbitrary headers, like the Postfix Delivered-To: 
> >>> header, rather than just To, CC, BCC?  This would be good for "Domain 
> >>> mailboxes" where all mail for a domain goes to one place, where mailing 
> >>> list traffic may end up, and where it's important to route mail somewhere 
> >>> even if it doesn't match To, CC or BCC.  And if mail doesn't match even 
> >>> those headers and any custom ones, it should go to a default user, so he 
> >>> can handle it rather than it getting lost.
> >> 
> >> Okay, sorry, looked more carefully at server.tab, and sure enough there is 
> >> FetchHdrTags to solve the first half.  So now, how do I specify the 
> >> default drop behaviour?  Is there something here with custom mail 
> >> processing to do it with the @domain syntax?
> > 
> > Pop3SyncErrorAccount?
> 
> I've since realised that the sample tabfiles and docs don't match up, so I've 
> reread them all over.  Thanks, this works, although feature request might be, 
> that if you specify a default user for each pop3links.tab entry, it apply 
> only for that entry, that POP server.  This way you can manage multiple 
> domain drops with "Unknown" destinations, or /dev/null them.

Making one (optional) sink per account is a good idea. Will do.


- Davide


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


Re: [xmail] POP3 Links and Delivered-To, Default User

2010-02-13 Thread Davide Libenzi
On Sat, 13 Feb 2010, Sabahattin Gucukoglu wrote:

> On 13 Feb 2010, at 11:21, Sabahattin Gucukoglu wrote:
> > Is there any way to make the POP3 sync module perform routing to mailboxes 
> > based on arbitrary headers, like the Postfix Delivered-To: header, rather 
> > than just To, CC, BCC?  This would be good for "Domain mailboxes" where all 
> > mail for a domain goes to one place, where mailing list traffic may end up, 
> > and where it's important to route mail somewhere even if it doesn't match 
> > To, CC or BCC.  And if mail doesn't match even those headers and any custom 
> > ones, it should go to a default user, so he can handle it rather than it 
> > getting lost.
> 
> Okay, sorry, looked more carefully at server.tab, and sure enough there is 
> FetchHdrTags to solve the first half.  So now, how do I specify the default 
> drop behaviour?  Is there something here with custom mail processing to do it 
> with the @domain syntax?

Pop3SyncErrorAccount?


- Davide


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


Re: [xmail] Orphaned messages in the spool directory

2010-02-10 Thread Davide Libenzi
On Thu, 11 Feb 2010, Matt Parlane wrote:

> Hi all...
> 
> I recently changed my spool split level back to the default - I had
> previously set it higher but now I realise that setting it higher
> probably wasn't helping.
> 
> Now I have found that I have a lot of messages that are sitting in the
> old spool directories, and XMail is not doing anything with them.
> What can I do about these messages?

Move those files into the proper subdirectories (cust, mess, slog, ...) of 
0/0 and restart.


- Davide


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


Re: [xmail] Cannot relay - 1.26

2010-02-10 Thread Davide Libenzi
On Wed, 10 Feb 2010, Zilon X wrote:

> Hi Davide,
> 
>I cannot try it on 32 bit hardware - sun4u is more than 10
> years old, and all Sun is 64 bit from Solaris 7.
> 
> With the exactly same environment, on both x64 and SPARC, I got
> different results - x64 relay, risc does not.
> I tried with both sfw and usr/local gcc environments, and both builds
> does the same relay error, but only on SPARC.
> All builds just 32 bit, as I still do not have OpenSSL as 64 bit.
> 
> Environment with GCC 3.4.6 / Gnu Make 3.81:
> CFLAGS=-I/usr/local/ssl/include
> LDFLAGS=-L/usr/local/ssl/lib
> PATH=/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/ssl/bin
> LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/local/ssl/lib
> INCLUDE=/usr/include:/usr/local/include:/usr/local/ssl/include

How did you specify the network?
Like this?

"X.Y.Z.W"   "A.B.C.D"

Or like this?

"X.Y.Z.W/N"


- Davide


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


Re: [xmail] XMail under attack - failed pop3 logins

2010-02-10 Thread Davide Libenzi
On Wed, 10 Feb 2010, David Lord wrote:

> On 10 Feb 2010 at 8:17, Davide Libenzi wrote:
> 
> > On Wed, 10 Feb 2010, David Lord wrote:
> > 
> > > 
> > > I've not seen this before today but XMail fell
> > > over during a pop3 password attack.
> > > 
> > >  pop3 connections at firewall
> > > Feb 10 05:00-06:00 0
> > > Feb 10 06:00-07:00  1161 
> > > Feb 10 07:00-08:00  9851
> > > Feb 10 08:00-09:00   248 
> > > Feb 10 09:00-10:00 0
> > > 
> > > Pop3 log on one server has 4987 entries all 
> > > "ELOGIN" but nothing else.  Second server on
> > > network has 3 similar entries from Feb 6.
> > > 
> > > Can I just add offending source ip range to spammers.tab
> > > or is it best to block at firewall?
> > > 
> > > I believe firewall can block on connection rate so
> > > might investigate that.
> > 
> > Firewall is better suited for things like that. That $hit does not even 
> > bother your server, in that way.
> > 
> 
> A couple of /8 blocks added as I was setting off out
> for afternoon when I spotted the problem.
> 
> Are attacks on pop3 something recent, or have I just
> been lucky?

No, I saw them too recently. I've setup a connection throttling with 
iptables.


- Davide


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


Re: [xmail] XMail under attack - failed pop3 logins

2010-02-10 Thread Davide Libenzi
On Wed, 10 Feb 2010, David Lord wrote:

> 
> I've not seen this before today but XMail fell
> over during a pop3 password attack.
> 
>  pop3 connections at firewall
> Feb 10 05:00-06:00 0
> Feb 10 06:00-07:00  1161 
> Feb 10 07:00-08:00  9851
> Feb 10 08:00-09:00   248 
> Feb 10 09:00-10:00 0
> 
> Pop3 log on one server has 4987 entries all 
> "ELOGIN" but nothing else.  Second server on
> network has 3 similar entries from Feb 6.
> 
> Can I just add offending source ip range to spammers.tab
> or is it best to block at firewall?
> 
> I believe firewall can block on connection rate so
> might investigate that.

Firewall is better suited for things like that. That $hit does not even 
bother your server, in that way.


- Davide


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


Re: [xmail] Cannot relay - 1.26

2010-02-08 Thread Davide Libenzi
On Mon, 8 Feb 2010, Zilon X wrote:

> Hi Davide,
> 
> I'm using Xmail for almost 7 years now, and sure - I read all docs.
> I stated bug not referring only to the mail server, but this can be
> something with my build environment.
> The entry in question is not just about relay to localhost, but to
> open relay for a single host - any one.
> Just like that:
> 
> "192.168.1.1""255.255.255.255"
> 
> So, I cannot open relay to hosts (/32), but only to networks?
> I think I can, cause this is happening on my Sparc machine, but not on
> my x64 - both 1.26 on Solaris 10.
> 
> Very strange, indeed.

OK, Big Endian vs. Little Endian might be a clue.
Did you try on a SPARC 32 Solaris boxen?



- Davide


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


Re: [xmail] Cannot relay - 1.26

2010-02-08 Thread Davide Libenzi
On Mon, 8 Feb 2010, Sabahattin Gucukoglu wrote:

> On 8 Feb 2010, at 16:36, Davide Libenzi wrote:
> > On Mon, 8 Feb 2010, Zilon X wrote:
> >> Oh no..
> >> 
> >>   It's not so simple at all - no host can relay since configured as
> >> single host (/32).
> >> 
> >> Is it a bug??
> > 
> > Sure, thousands of users use it just fine, but you, that probably haven't 
> > even read a single line of the documentation, say it is a bug.
> > What you have done below, is configure localhost to relay, not the other 
> > hosts on your network.
> > How about reading the smtprelay.tab section of the documentation, or using 
> > SMTP authentication?
> 
> Hmm.  In his example, he shows that localhost can relay only when the 
> netmask isn't all ones (/32).  I haven't tested it, but if that were 
> true, indeed it is a bug, unless of course his loopback is running on an 
> address that isn't 127.0.0.1 (very, very unlikely).

>From how I read it, it seems he configured localhost only, and thinks 
other hosts can relay too.
At this point, can you please post your smtprelay.tab, and tell what do 
you expect from it?



- Davide


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


Re: [xmail] Cannot relay - 1.26

2010-02-08 Thread Davide Libenzi
On Mon, 8 Feb 2010, Zilon X wrote:

> Oh no..
> 
>It's not so simple at all - no host can relay since configured as
> single host (/32).
> 
> Is it a bug??

Sure, thousands of users use it just fine, but you, that probably haven't 
even read a single line of the documentation, say it is a bug.
What you have done below, is configure localhost to relay, not the other 
hosts on your network.
How about reading the smtprelay.tab section of the documentation, or using 
SMTP authentication?


- Davide


> On Tue, Feb 2, 2010 at 9:19 AM, Zilon X  wrote:
> > I Found it!
> >
> >     Ops.. At the smtprelay.tab, instead of
> > "127.0.0.1""255.0.0.0" was "127.0.0.1""255.255.255.255".
> > Changed this, and now relay works.
> >
> > Thanks Davide.
> >
> > Whew...
> >
> > On Tue, Feb 2, 2010 at 7:28 AM, Zilon X  wrote:
> >> Hi Davide,
> >>
> >> Yes, real tabs and a new line at the end.
> >> I also made a test using only the server IP and localhost (127.0.0.1)
> >> on the smtprelay file, but still no relay.
> >>
> >> On Mon, Feb 1, 2010 at 10:27 PM, Davide Libenzi  
> >> wrote:
> >>> On Mon, 1 Feb 2010, Zilon X wrote:
> >>>
> >>>> Hi All,
> >>>>
> >>>> I'm using XMail 1.26 on several servers, but just one do not relay.
> >>>> Even from localhost - the 127.0.0.1 and the server IP address are at
> >>>> the smtprelay.tab.
> >>>> There are no pre-filters, and the relay denied warning appears just
> >>>> after insert the "rcpt" command.
> >>>
> >>> Do you have *real* TABs inside your smtprelay.tab file?
___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] Mozilla Thunderbird 3.0.1

2010-02-04 Thread Davide Libenzi
On Thu, 4 Feb 2010, Edinilson - ATINET wrote:

> We are having a strange problem with Mozilla Thunderbird 3.0.1
> For some reason, it does not authenticate with XMail when the option:
> Security and Authentication is marked
> Use secure connection: NO
> 
> ps: XMail for Win32 1.27 pre-14
> 
> Any idea?

I have no idea, but running a sniffer and seeing what FF is trying to do, 
might help in the diagnosis.


- Davide


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


Re: [xmail] Debian XMail Packages Outdated

2010-02-03 Thread Davide Libenzi
On Wed, 3 Feb 2010, Radu Spineanu wrote:

> Hi Sabahattin
> 
> > Not counting the prerelease versions, the Debian package for xmail and
> > xmail-doc is one minor version out of date (1.25 vs 1.26), in repository
> > unstable.
> 
> 
> My bad, sorry. I was waiting for 1.27.

Will do this weekend. I just wanted it to live w/out changes and problems 
for a little while.


- Davide


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


Re: [xmail] Outbind configuration

2010-02-03 Thread Davide Libenzi
On Wed, 3 Feb 2010, Ana Paula Fernandes wrote:

> Hi,
> 
> In some times, i have sending thousands of emails in short period.
> 
> Yahoo and others domains have a rule for the messages from the same IP
> and short times.
> 
> At moment i using only one IP for the output send.
> 
> I have more IP numbers in this server, now i need to configure xmail
> to use some IP numbers in the circular or random mode to send mails
> for all domains i have in this server.
> 
> I read the documentation but not clear for me the correct mode of 
> configuration.
> 
> Now:
> 200.xxx.xxx.50
> 
> After:
> 200.xxx.xxx.50
> 200.xxx.xxx.55
> 200.xxx.xxx.56
> 
> Other information, in this case xmail will try all sending of the same
> destination delivery mail with the same IP for best GrayList or at new
> try has using a new IP?

Gateway/Outbind configuration is based on the target domain, so you cannot 
have XMail rotating bindings at every attempt.


- Davide


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


Re: [xmail] Build on Solaris 64

2010-02-03 Thread Davide Libenzi
On Wed, 3 Feb 2010, Zilon X wrote:

> Hi Davide,
> 
>I'm lost with those message about ld.so.1:
> 
> # gmake CFLAGS=-m64 LDFLAGS=-m64 -f Makefile.sso
> g++  -m64 -c MkMachDep.cpp
> g++ -o bin/MkMachDep MkMachDep.o -m64
> touch bin/MkMachDep
> ../bin/MkMachDep > SysMachine.h
> ld.so.1: MkMachDep: fatal: /usr/sfw/lib/libstdc++.so.6: wrong ELF
> class: ELFCLASS32
> Killed
> gmake: *** [SysMachine.h] Error 137

Looks like you have not a properly configured 64bit system, with the GNU 
stuff.
The C++ library that is being picked up by the linker, is the 32bit 
version.



- Davide


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


Re: [xmail] Build on Solaris 64

2010-02-02 Thread Davide Libenzi
On Tue, 2 Feb 2010, Zilon X wrote:

> Hi Davide,
> 
> Yes, this is what I'm using - this builds 32 bit binaries:
> 
> # file bin/XMail
> bin/XMail:  ELF 32-bit MSB executable SPARC Version 1, dynamically
> linked, not stripped, no debugging information available
> 
> This is the environment I'm using to compile:
> PATH=$XMAIL_ROOT/bin:/usr/sbin:/usr/bin:/usr/sfw/sbin:/usr/sfw/bin
> LD_LIBRARY_PATH=/usr/lib:/usr/sfw/lib
> INCLUDE=/usr/include:/usr/sfw/include:/usr/sfw/include/openssl

Try to add "-m64" to both CFLAGS and LDFLAGS ...



- Davide


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


Re: [xmail] Build on Solaris 64

2010-02-02 Thread Davide Libenzi
On Tue, 2 Feb 2010, Zilon X wrote:

> Hi All,
> 
> Are there anyone who uses XMail 64-bits on SPARC? What make options to 
> use?
> I'm using sfw environment, and sfw gmake, to build the XMail.
> 
> Maybe this configuration can be standard on the makefile - Sparc
> processors are 64 bits for awhile.

Did you try `gmake -f Makefile.sso`?


- Davide


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


Re: [xmail] Cannot relay - 1.26

2010-02-01 Thread Davide Libenzi
On Mon, 1 Feb 2010, Zilon X wrote:

> Hi All,
> 
> I'm using XMail 1.26 on several servers, but just one do not relay.
> Even from localhost - the 127.0.0.1 and the server IP address are at
> the smtprelay.tab.
> There are no pre-filters, and the relay denied warning appears just
> after insert the "rcpt" command.

Do you have *real* TABs inside your smtprelay.tab file?


- Davide


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


Re: [xmail] Speed

2010-01-31 Thread Davide Libenzi
On Sat, 30 Jan 2010, David Lord wrote:

> On 30 Jan 2010 at 12:25, Sabahattin Gucukoglu wrote:
> 
> > Hi all,
> > 
> > By all reasonable accounts, XMail is fast.  Does anybody know how it stacks 
> > up against the competition?  Postfix, in particular, has held the speed 
> > crown for a good while now.  But XMail with this fast thread startup and 
> > connection reuse could, I'm sure, be made to outflank Postfix even under 
> > stress and with its connection cache enabled.
> >
> 
> Here on my minimal server it's filters that take most
> of resources by orders of magnitude I'd guess.

That is indeed what todays is the limiting factor of MTA's performance. 
Pretty much everyone runs some sort of filters, checks RBLs, and so on, 
which end up limiting performance far more than thread pooling and 
connection caching.
Unless you use an MTA which run no filter, which perform no DNS
resolution, which does no RDNS checks,, which checks no RBLs, and so on.


- Davide


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


Re: [xmail] XMail 1.27-pre11

2010-01-21 Thread Davide Libenzi
On Thu, 21 Jan 2010, Edinilson - ATINET wrote:

> Great job Davide!!!
> It works perfectly now (on Windows 2000 Server, SP4).

Strange, MSVC8 must have changed some of the logic in there, since I never 
had to include wspiapi.h in order to make that work before.



- Davide


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


  1   2   3   4   5   6   7   8   9   10   >