Spyros Tsiolis | 21 May 2013 16:26
Picon
Favicon

message logging

Hello all,

I have a situation with an installation where someone has managed
to get hold of an e-mail address (the boss' actually) and is sending
spam to the outside world.

To an extend, I've managed to isolate the problem and it seems
it's the mail server itself.
I still don't know if it's XMail or an anti-spam solution I've adopted
since about 2004.

I would like to monitor the mail that goes out to the world.
Can I do this with XMail ? Do I check the logs ? Which logs ?
I've never done this before, so I would be greatful to any help.

thank you,

spyros








 
----
"I merely function as a channel that filters
music through the chaos of noise"
- Vangelis
_______________________________________________
xmail mailing list
xmail <at> xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail
U.Mutlu | 19 May 2013 21:31

SPF update?

Hi Davide & All,

just a question: does the SPF script (xm-spf.pl) cover the
final SPFv1 specification (RFC 4408) as depicted here:
  http://www.openspf.org/Specifications

The script is from the year 2004, but the above RFC was ratified in 2006.
Can something go wrong when the script is used nowadays?

Thx
_______________________________________________
xmail mailing list
xmail <at> xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail

Spyros Tsiolis | 30 Apr 2013 18:40
Picon
Favicon

a strange issue

Hello all,

Long time no write.

I have an issue with two Xmail installations.
I suspect that it's not XMail per se, but I need your feedback.

Two companies with main and branch offices.

All main offices are connected to branch offices via ipsec and static VPNs.

I lately upgraded the firewall on the main offices only and it seems, I
stumbled upon a freak issue.

Here's the thing; When I try to get main (110) from XMail, the system
comes back with an error message saying that it cannot get the new
messages.

One installation (company) uses Outlook 2007 Sp3 while the other
uses Thunderbird v17.0.x (whatever the latest vesion is).
Both MUAs complain that there's something wrong.

I do this manually with the help of the command line
(telnet mailserver port 110, user such_and_such, pass such_and_such) and
the system responds ok (such and such messages).

Outlook spits this error :

Task "user <at> domain.gr" - receiving reported error (0x8004210A): 'The
operation times out waiting for a response from the receiving (POP) server.
If you continue to receive this message, contact your server administrator
or Internet service provider (ISP)'

Any ideas are more than welcome since this has, now, escalated and
I am running out of ideas....

Thank you kindly,

s.
 
----
"I merely function as a channel that filters
music through the chaos of noise"
- Vangelis
_______________________________________________
xmail mailing list
xmail <at> xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail
Rittikorn L. | 24 Apr 2013 12:20
Picon

Email auto add in SPAM-ADDRESS.TAB and SPAMMERS.TAB

Hi

I found the strange problem,
users said cannot send any email and I found user email address register 
in spam-address.tab
but I surely no one add it by manual this problem occur two time but 
difference email address.
it same case in spammers.tab, some time found IP Address register in 
spammers.tab

Please help to advise.
It can add automatic by XMail?
OS: CentOS
XMail v.1.27
No SPAM fitter software install

Regards,
Rittikorn L.
_______________________________________________
xmail mailing list
xmail <at> xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail

md@rpzdesign.com | 15 Apr 2013 18:37

Re: Address family fallback bug

How to load up aliases.tab, domains.tab so that all email from a given 
domain forward to an internal or external email.

Inside domains.tab

"mydomain.org"

Inside aliases.tab

"mydomain.org" [tab] "joe" [tab] "joe <at> mydomain.org" [enter]
"mydomain.org" [tab] "*" [tab] "junk <at> externaldomain.com" [enter]
"*" [tab] "postmaster" [tab] "webmaster <at> specificemail.com" [enter]

What I am getting when email to fred <at> mydomain.org  results in a -550 
Mailbox unavailable error, when
I want the aliases.tab to pick it up and send it to junk <at> externaldomain.com.

The same for any "postmaster" emails, I want them sent to 
webmaster <at> specificemail.com

Anybody got any ideas?

Thanks,

md

_______________________________________________
xmail mailing list
xmail <at> xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail

Hal Dell | 11 Apr 2013 20:38

Re: Outbind

Hello... I have recently performed a new installation of xMail 1.27 onto a Windows Server 2008 R2 X64 configuration.

The Server has two IPs 64..XXX.XXX.230 and 64.XXX.XXX.229.

I am trying to force xMail to use 64.XXX.XXX.230 for all outbound eMails. I've looked an OLD server.tab that I have PLUS I look at the docs several times at:

www.xmailserver.org/Readme.html#server_tab and
www.xmailserver.org/Readme.html#smtp_gateway_configuration.

After which I added a line in sever.tab like:

"SmtpGwConfig" "OutBind=64.74.149.230"

It appears to NOT be working when I perform a telent test and review the received eMail -- its still coming from the default IP 64.XXX.XXX.229.. Do I need to add some privledge to the service enable this or am I missing something else? The service is running with LSA!

Any help would be appreciated.

Thanks, Hal Dell

 



 

_______________________________________________
xmail mailing list
xmail <at> xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail
fcxmail | 14 Mar 2013 14:05

Re: Address family fallback bug

Sorry for late response

Does your patch tries all the mx assigned ips even in -m4 mode (ipv4 only) ?

Do you have binaries available (here for win32) for testing ?
(i don't have vc compiler here)

Francis

===============================================
> Message d'origine - 10/02/2013 22:45:09
===============================================

Hi

On my servers, I noticed increasing number of failed deliveries with 
"417 Temporary delivery error" and "Error connecting to remote 
address". I did a little investigation and long story short, XMail 
doesn't handle address family fallback, when connection using 
preferred one does not succeed. It simply tries only one address per 
MX and if it doesn't work, it considers that MX dead and moves to another one.

Now imagine what happens when you use -M7 parameter (use IPV6 records 
if present, or IPV4 records otherwise, for host name lookups), target 
system has both IPv4 and IPv6 records set for all MXes (soon to be 
standard for most servers, well perhaps not so soon, but it's getting 
more and more common) and IPv6 is broken on either side or anywhere 
between. XMail tries connecting using only IPv6 for a while, until it 
finally gives up and returns the message as undeliverable. Which is 
wrong, because if it tried IPv4, it would deliver it just fine.

Relatively safe workaround for now, assuming IPv6 as a new thing is 
going to break more often than IPv4, is to use -M5 instead (Use IPV4 
records if present, or IPV6 records otherwise, for host name 
lookups). But it means that IPv6 won't get used at all, except for 
few rare IPv6-only MXes. Also the problem does not really go away, if 
it happens that IPv6 works while IPv4 does not, it will be back.

Attached is patch with "works for me" solution, i.e. not tested by 
anyone else nor even necessarily correct. It makes XMail try to 
connect to all addresses of MX before moving to next one. Apart from 
possible unintentional errors, it deliberately ignores -M5 and -M7 
parameters and uses AF_UNSPEC for getaddrinfo() and all results when 
one of them is set. It respects -M4 and -M6 if someone really wants 
to use only one address family.

IMHO -M5 and -M7 are wrong, at least on Windows, where getaddrinfo() 
with AF_UNSPEC returns addresses in best order automatically and 
manual override should not be needed. I think Linux either does that 
too or at least has means to influence it using /etc/gai.conf. So 
even if -M5 and -M7 should stay as useful for someone, adding new -M8 
for AF_UNSPEC order would be good idea.

PSYNC has the same problem. And I guess CtrlClnt connecting to server 
probably too, but it's far from critical.

--

-- 
_______________________________________________
xmail mailing list
xmail <at> xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail

Spyros Tsiolis | 8 Mar 2013 18:36
Picon
Favicon

Re: User password

>Thanks Spyros.
> 
> Do I add all of those lines or just what I need?
> 
> Regards
> Barry

If you have a network, say, 192..168.10.0/24,

the ctrl.ipmap.tab file should look something like
this :

"0.0.0.0"       "0.0.0.0"       "DENY" "1"
"127.0.0.1"     "255.255.255.255"       "ALLOW" "2"
"192.168.10.0"  "255.255.255.0" "ALLOW" "3"

Make sure that between "sentences", you press the
TAB button and not the SPACE button.

The above will deny everything from any machine and
then explicitly allow localhost (127.0.0.1) and
the 192.168.10.0/24 subnet

Regards,

s.

----

"I merely function as a channel that filters 
music through the chaos of noise"
- Vangelis
_______________________________________________
xmail mailing list
xmail <at> xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail

Barry Kavanagh | 8 Mar 2013 15:00

User password

I have an old Xmail server running on a Gentoo Vmware box with full root
access.I want to send a mail as user15 but can't remember the password.I
have very basic Linux :( I am trying to reset the password for user15

I have tried entering say "user15" "XYZ" and saving the file but it does not
work.

How do I successfully reset this Xmail user password when the server has no
X server and no web admin.

_______________________________________________
xmail mailing list
xmail <at> xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail

Sob | 10 Feb 2013 22:45
Picon

Address family fallback bug

Hi

On my servers, I noticed increasing number of failed deliveries with 
"417 Temporary delivery error" and "Error connecting to remote 
address". I did a little investigation and long story short, XMail 
doesn't handle address family fallback, when connection using 
preferred one does not succeed. It simply tries only one address per 
MX and if it doesn't work, it considers that MX dead and moves to another one.

Now imagine what happens when you use -M7 parameter (use IPV6 records 
if present, or IPV4 records otherwise, for host name lookups), target 
system has both IPv4 and IPv6 records set for all MXes (soon to be 
standard for most servers, well perhaps not so soon, but it's getting 
more and more common) and IPv6 is broken on either side or anywhere 
between. XMail tries connecting using only IPv6 for a while, until it 
finally gives up and returns the message as undeliverable. Which is 
wrong, because if it tried IPv4, it would deliver it just fine.

Relatively safe workaround for now, assuming IPv6 as a new thing is 
going to break more often than IPv4, is to use -M5 instead (Use IPV4 
records if present, or IPV6 records otherwise, for host name 
lookups). But it means that IPv6 won't get used at all, except for 
few rare IPv6-only MXes. Also the problem does not really go away, if 
it happens that IPv6 works while IPv4 does not, it will be back.

Attached is patch with "works for me" solution, i.e. not tested by 
anyone else nor even necessarily correct. It makes XMail try to 
connect to all addresses of MX before moving to next one. Apart from 
possible unintentional errors, it deliberately ignores -M5 and -M7 
parameters and uses AF_UNSPEC for getaddrinfo() and all results when 
one of them is set. It respects -M4 and -M6 if someone really wants 
to use only one address family.

IMHO -M5 and -M7 are wrong, at least on Windows, where getaddrinfo() 
with AF_UNSPEC returns addresses in best order automatically and 
manual override should not be needed. I think Linux either does that 
too or at least has means to influence it using /etc/gai.conf. So 
even if -M5 and -M7 should stay as useful for someone, adding new -M8 
for AF_UNSPEC order would be good idea.

PSYNC has the same problem. And I guess CtrlClnt connecting to server 
probably too, but it's far from critical.

-- 
--- xmail-1.27-clean\SMTPUtils.cpp	2010-02-26 04:33:44.000000000 +0100
+++ xmail-1.27-af-fix\SMTPUtils.cpp	2013-02-10 16:03:44.882282400 +0100
 <at>  <at>  -1212,30 +1212,71  <at>  <at> 

 	SYS_INET_ADDR SvrAddr;

-	if (MscGetServerAddress(szAddress, SvrAddr, iPortNo) < 0)
+	int iError;
+	struct addrinfo *pCRes, *pRes;
+	struct addrinfo AHints;
+	bool bConnected = false;
+	SYS_SOCKET SockFD;
+
+	ZeroData(AHints);
+	switch (iAddrFamily) {
+	case AF_INET:
+		AHints.ai_family = AF_INET;
+		break;
+	case AF_INET6:
+		AHints.ai_family = AF_INET6;
+		break;
+	default:
+		AHints.ai_family = AF_UNSPEC;
+	}
+
+	if ((iError = getaddrinfo(szAddress, NULL, &AHints, &pRes)) != 0) {
 		return INVALID_SMTPCH_HANDLE;
+	}
+	for (pCRes = pRes, iError = ERR_BAD_SERVER_ADDR; pCRes != NULL; pCRes = pCRes->ai_next) {
+		if (pCRes->ai_addr->sa_family != AF_INET && pCRes->ai_addr->sa_family != AF_INET6)
+			continue;

-	SYS_SOCKET SockFD = SysCreateSocket(SysGetAddrFamily(SvrAddr), SOCK_STREAM, 0);
+		if (pCRes != NULL && sizeof(SvrAddr.Addr) >= pCRes->ai_addrlen) {
+			ZeroData(SvrAddr);
+			SvrAddr.iSize = pCRes->ai_addrlen;
+			memcpy(SvrAddr.Addr, pCRes->ai_addr, pCRes->ai_addrlen);
+		} else
+			continue;

-	if (SockFD == SYS_INVALID_SOCKET)
-		return INVALID_SMTPCH_HANDLE;
+		if (SysSetAddrPort(SvrAddr, iPortNo) < 0)
+			continue;

-	/*
-	 * Are we requested to bind to a specific interface to talk to this server?
-	 */
-	if (pGw->pszIFace != NULL) {
-		SYS_INET_ADDR BndAddr;
+		SockFD = SysCreateSocket(SysGetAddrFamily(SvrAddr), SOCK_STREAM, 0);

-		if (MscGetServerAddress(pGw->pszIFace, BndAddr, 0) < 0 ||
-		    SysBindSocket(SockFD, &BndAddr) < 0) {
+		if (SockFD == SYS_INVALID_SOCKET)
+			continue;
+
+		/*
+		 * Are we requested to bind to a specific interface to talk to this server?
+		 */
+		if (pGw->pszIFace != NULL) {
+			SYS_INET_ADDR BndAddr;
+
+			if (MscGetServerAddress(pGw->pszIFace, BndAddr, 0) < 0 ||
+			    SysBindSocket(SockFD, &BndAddr) < 0) {
+				SysCloseSocket(SockFD);
+				continue;
+			}
+		}
+		if (SysConnect(SockFD, &SvrAddr, STD_SMTP_TIMEOUT) < 0) {
 			SysCloseSocket(SockFD);
-			return INVALID_SMTPCH_HANDLE;
+			continue;
+		} else {
+			bConnected = true;
+			break;
 		}
 	}
-	if (SysConnect(SockFD, &SvrAddr, STD_SMTP_TIMEOUT) < 0) {
-		SysCloseSocket(SockFD);
+
+	freeaddrinfo(pRes);
+
+	if (!bConnected)
 		return INVALID_SMTPCH_HANDLE;
-	}

 	/* Check if We need to supply an HELO host */
 	char szHeloHost[MAX_HOST_NAME] = "";
_______________________________________________
xmail mailing list
xmail <at> xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail
Helio Cavichiolo Jr | 6 Feb 2013 14:20
Picon

REMOTEADDR in UsrAuth

Anyone can help me on how to add REMOTEADDR macro substitution in UsrAuth?

Thanx
Helio

_______________________________________________
xmail mailing list
xmail <at> xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail

Gmane