Re: [xmail] SMTP external authentication is not worjing
Dear, I have version 1.26 of XMail. I have found that the configuration file smtpextauth.tab is not interpreted correctly. The parameters have a shift. It is necessary to add a "Dummy" field, like this: "LOGIN" "*Dummy*" "/etc/dovecot/user_auth.sh" "@@USER" "@@PASS" "@@RFILE" Regards! Cesar Meloni El mar., 5 mar. 2019 a las 4:43, Spon Spon via xmail () escribió: > Hello, > > I have a mixed setup with DOVECAT for IMAP access, and XMAIl 1.27 for the > rest. The relay is cosed until authentication is made In order to have a > centralized place for authentication I used in XMAIL external > authentication. However seems it is not working as I receive 550 Relay > Denied when I try to send an email using this XMAIL server. > > The setup is as following: > > In smtpextauth.tab I put following line: > > "LOGIN" "/config/scripts/checkSmtpAuth.sh" "@@AUTH" "@@USER" "@@PASS" > "@@RFILE" > In server tab I have: > "DefaultSmtpPerms" "MRVZ" > > In checkSmtpAuth.sh I always exit with 0 for testing. However I received > 550 Relay denied each time I tried to send an email. If the script exits > with 1 then the error is different, (Authentication error). > > I tried also populating RFILE with Perms=MR but without success. I tried > also with Perms=MRVZ . No change. > > Also another issue is the fact that those RFILE files were never get > deleted. For each email, that file is created and stays there forever > (need external action to delete it) > > Is there any other settings that need to be made or is this a bug ? > > Using internal authentication (smtpauth.tab or mailuser.tab) emptying > smtpextauth.tab there is no such error, and everything works as expected.. > > Unfortunately there is no debug log in application, so only way to figure > out is DEBUG, and currently it is installed on an embedded router so no way > to debug. > > Thanks, > Spon > > ___ > 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] Fwd: Line Termination
-- Forwarded message -- From: Cesar Meloni cesarmel...@gmail.com Date: 2011/6/28 Subject: Line Termination To: XMail Users Mailing List xmail@xmailserver.org Davide I have installed XMail 1.27. Compiled from source on an Ubuntu Server 8.04 x32. In addition, sharing the Maildir with courier-imap. Due to some issues with Outlook clients I have noticed that the line termination used to store messages into the mailboxes is CRLF and not the OS native LF termination. According to the Change Log in the version 1.26 messages are stored with the OS native LF termination, instead of the RFC CRLF that was used before. There is a compilation option to activate this feature? Thank you very much! Cesar L. Meloni ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
[xmail] Line Termination
Davide I have installed XMail 1.27. Compiled from source on an Ubuntu Server 8.04 x32. In addition, sharing the Maildir with courier-imap. Due to some issues with Outlook clients I have noticed that the line termination used to store messages into the mailboxes is CRLF and not the OS native LF termination. According to the Change Log in the version 1.26 messages are stored with the OS native LF termination, instead of the RFC CRLF that was used before. There is a compilation option to activate this feature? Thank you very much! Cesar L. Meloni ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] Multiple outbound smtp connections
Of course, each instance of XMail has its own startup script with the correct environment variables. Original XMail: XMAIL_ROOT=/var/MailRoot XMAIL_CMD_LINE=-Md -Pl -Sl -Fl -Cl -Ll -Qt 480 -Qg -Qr 16 -Qn 60 -Ql -Mx 32 -SX 60 PATH=$XMAIL_ROOT/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin Alternative: XMAIL_ROOT=/var/MailRoot2 XMAIL_CMD_LINE=-Md -P- -B- -Sp 1025 -X- -Qn 3 -Y- -F- -C- -W- -Ll -Pl -Sl -Ql -Yl -Fl PATH=$XMAIL_ROOT/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin An important detail: I changed the name of the binary XMail by XMail2 (In the second process) to generate PID files with different name. Could be a command line parameter!! :) Greetings! Cesar 2010/11/3 Davide Libenzi davi...@xmailserver.org 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 TAB 255.255.255.255 And in original XMail the following configuration: smtpfwd.tab: *yahoo.comTAB127.0.0.1:1025 *hotmail.comTAB127.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 fcxm...@aquinet.net 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 ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] Multiple outbound smtp connections
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 TAB 255.255.255.255 And in original XMail the following configuration: smtpfwd.tab: *yahoo.comTAB127.0.0.1:1025 *hotmail.comTAB127.0.0.1:1025 so you can separate these emails in an alternative queue with 3 simultaneous connections form SMTP. Cesar Meloni 2010/10/6 fcxm...@aquinet.net 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 ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] any chance of making XMail play nice with Dovecot ?
By the way, someone uses or knows any IMAP server for Win32, which can be integrated with XMail? Thanks! Cesar. 2009/12/12 Davide Libenzi davi...@xmailserver.org On Sat, 12 Dec 2009, Chen Shihai wrote: Hi Davide, Is there a way to reconfigure and compile XMail to use CRLF on Linux? Because my webmail program doesn't like LF only, I can't upgrage XMail to 1.26 or above. Add this line to SysTypesUnix.h and rebuild: #define SYS_CRLF_EOL1 - 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
Re: [xmail] any chance of making XMail play nice with Dovecot ?
If it's something, i have a lot of XMail servers runing with Courier-IMAP very nice. Courier-IMAP has served me very helpful in terms of integrating different authentication methods, provide for full consistency between POP (XMail), SMTP (XMail) and IMAP (Courier) authentication, and sharing the user database of XMail, having to manage XMail users only. Good lock! Cesar. 2009/12/11 Henri van Riel xm...@vriel.nl Hi, XMail and Dovecot have been playing nice together here for years! XMail for SMTP and a couple of POP3 accounts and Dovecot for IMAP. No problems so far. -- Henri. Spyros Tsiolis schreef: Hello people, Would someone know of a way of making XMail act as the SMTP box and Dovecot act as the IMAP box ? Does XMail play nice with Dovecot or am I just wasting my time and my bandwidth ? Google, shows one result (basically) dating back to 2005. Any help would be greatly appreciated. Regards, s. - I merely function as a channel that filters music through the chaos of noise - Vangelis Keep your friends updated— even when you’re not signed in. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010 ___ 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
Re: [xmail] SMTP Ext Auth
Davide I really appreciate your response, you are doing a great job. It would be nice also change the XMail manual. Especially in the External Authentication section, the phrase for now only POP3 and indicate a reference to the smtpextauth.tab for SMTP authentication. The end of line change in the mail files has greatly facilitated the creation of filters and their treatment, especially those who work with POSIX platforms. It also has improved integration with other products (such as IMAPServers) that share the Maildir. Thanks again! Cesar L. Meloni 2009/9/28 Davide Libenzi davi...@xmailserver.org On Mon, 28 Sep 2009, Cesar Meloni wrote: Hello all! I have an XMail server v1.26 runing on Linux (with CourierIMAP for IMAP clients, really work great)... CourierIMAP authenticated with a script through AuthProg (pipe). XMail POP3 clients authenticated withan external bash script that works correctly. The same bash script I use for SMTP authentication but has not been successful, my configuration is: For POP3 userauth/pop3/mydomain..tab: userauthTAB/var/MailRoot/bin/xmailldapauth.shTAB@@USERTAB@@PASSWDTABserveripTABdomainame For SMTP smtpextauth.tab (FAIL) PLAINTAB/var/MailRoot/bin/xmailldapauth.shTAB@@USERTAB@@PASSTABserveripTABdomainame XMail debug mode displays the following message: SMTP client connection from [1.2.3.4] execv error: cmd='username' XMail try to run the @@USER macro, just by intuition, if I put the next field in the configuration file, it works correctly: PLAINTABDummyFieldTAB/var/MailRoot/bin/xmailldapauth.shTAB@@USERTAB@@PASSTABserveripTAB domainame What is happening? You hit a bug ;) I fixed it in 1.27, but you can easily fix it in 1.26 with the following patch. - Davide diff --git a/SMTPSvr.cpp b/SMTPSvr.cpp index 13c7177..5614ed5 100644 --- a/SMTPSvr.cpp +++ b/SMTPSvr.cpp @@ -2442,7 +2442,7 @@ static int SMTPExternalAuthenticate(BSOCK_HANDLE hBSock, SMTPSession SMTPS, /* Call external program to compute the response */ int iExitCode = -1; - if (SysExec(ppszAuthTokens[2], ppszAuthTokens[2], SVR_SMTP_EXTAUTH_TIMEOUT, + if (SysExec(ppszAuthTokens[1], ppszAuthTokens[1], SVR_SMTP_EXTAUTH_TIMEOUT, SYS_PRIORITY_NORMAL, iExitCode) 0) { ErrorPush(); SysRemove(szRespFile); ___ 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] SMTP Ext Auth
Hello all! I have an XMail server v1.26 runing on Linux (with CourierIMAP for IMAP clients, really work great)... CourierIMAP authenticated with a script through AuthProg (pipe). XMail POP3 clients authenticated withan external bash script that works correctly. The same bash script I use for SMTP authentication but has not been successful, my configuration is: For POP3 userauth/pop3/mydomain.tab: userauthTAB/var/MailRoot/bin/xmailldapauth.shTAB@@USERTAB@@PASSWDTABserveripTABdomainame For SMTP smtpextauth.tab (FAIL) PLAINTAB/var/MailRoot/bin/xmailldapauth.shTAB@@USERTAB@@PASSTABserveripTABdomainame XMail debug mode displays the following message: SMTP client connection from [1.2.3.4] execv error: cmd='username' XMail try to run the @@USER macro, just by intuition, if I put the next field in the configuration file, it works correctly: PLAINTAB*DummyField* TAB/var/MailRoot/bin/xmailldapauth.shTAB@@USERTAB@@PASSTABserveripTABdomainame What is happening? Thank you very much in advance! Cesar L. Meloni ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
[xmail] Re: External SMTP Authentication
Hi! Davide! I think that is not what I'm looking for. I need to authenticate internal clients against an LDAP server for POP3 and SMTP protocols. He succeeded in POP3 authenticate against LDAP, Active Directory, NT4 Domain and Firebird Database, but I do not see how you do in SMTP. I'm using Linux on XMail 1.25 (Slack, Ubuntu, Debian and Centos). Thanks in advance!! Cesar. 2008/11/7 Davide Libenzi [EMAIL PROTECTED] On Fri, 7 Nov 2008, Cesar Meloni wrote: Hello everyone!! Its posible stablish a Custom-External SMTP authentication, like POP3? Thanks in advance!! Like this? http://www.xmailserver.org/Readme.html#smtp_client_authentication - Davide - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]
[xmail] External SMTP Authentication
Hello everyone!! Its posible stablish a Custom-External SMTP authentication, like POP3? Thanks in advance!! Cesar. - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]