Problems with Mailman and Scalix

Best practice information from Scalix users relating to integration of Scalix with other products.

Moderator: ScalixSupport

mito
Posts: 194
Joined: Fri Mar 24, 2006 11:33 am

Problems with Mailman and Scalix

Postby mito » Fri Oct 27, 2006 2:41 pm

Ok, first of all, I have fully read this topic that says how it should work:
http://www.scalix.com/community/viewtop ... 1833#11833

But I'm still getting problems!
I'm running RedHat FC4. I installed Mailman using the rpm via 'yum install mailman' and followed all the instructions in /usr/share/doc/mailman-2.1.8/INSTALL.REDHAT for post-install tasks. I created the mailing list, I received the mailing list emails saying I'm subscribed etc.

My problem is when I'm sending to the list, the email is getting stuck in the outbound queue saying "Deferred: Connection refused by domain.com."

So, I search the forums etc, and I find several responses saying thus:
"You need to have sendmail running as a daemon listening on 127.0.0.1:25."
http://www.scalix.com/community/viewtopic.php?p=807#807

Well, I have it set to running, and I can send mail, etc so I'm confused.

One possibility that I can think of is that in smtpd.conf I have this option set:

Code: Select all

SMTPFILTER=TRUE

The reason I have this on is because I am using Mailscanner (Installed per instructions in this post: http://www.scalix.com/community/viewtop ... =7614#7614 .) Namely:
3) Leave Scalix as the primary SMTP listener and set SMTPFILTER=TRUE in smtpd.cfg.


So, my thought and question is, am I having this problem because of the SMTPFILTER setting? And if so, how can I get around this?

Thanks for the great email server and all your help!!!

Mito


PS. Also of note, I've always had a problem where all my mail is being received from 127.0.0.1 and I believe it is also due to this setting. If you know how to fix that as well, I'd love to hear it!

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Re: Problems with Mailman and Scalix

Postby Valerion » Mon Oct 30, 2006 4:54 am

mito wrote:My problem is when I'm sending to the list, the email is getting stuck in the outbound queue saying "Deferred: Connection refused by domain.com."

Mmm ... weird. We will have to debug this step-by-step, then. It definatedly works for me on the same machine.

Run the following for me:

Code: Select all

lsof -i:25

That should return something looking like the following. Check the hostnames are correct:

Code: Select all

COMMAND   PID USER   FD   TYPE DEVICE SIZE NODE NAME
sendmail 3572 root    4u  IPv4   8236       TCP localhost.localdomain:smtp (LISTEN)
omsmtpd  3774 root    4u  IPv4   8599       TCP <your-host-name>:smtp (LISTEN)


When you say "outbound queue" I assume you mean the sendmail mail spool, accessible via mailq. Also, is "domain.com" your domain or a user you're trying to send to's domain?

Try running

Code: Select all

sendmail -qI<ID> -v
where <ID> is the ID in the mailq command, and post the sendmail logs here for me.

mito wrote:PS. Also of note, I've always had a problem where all my mail is being received from 127.0.0.1 and I believe it is also due to this setting. If you know how to fix that as well, I'd love to hear it!


Can you post an example log of this as well?

Thanks :)

mito
Posts: 194
Joined: Fri Mar 24, 2006 11:33 am

Re: Problems with Mailman and Scalix

Postby mito » Mon Oct 30, 2006 11:06 am

Valerion wrote:
mito wrote:My problem is when I'm sending to the list, the email is getting stuck in the outbound queue saying "Deferred: Connection refused by domain.com."

Mmm ... weird. We will have to debug this step-by-step, then. It definatedly works for me on the same machine.

Run the following for me:

Code: Select all

lsof -i:25

That should return something looking like the following. Check the hostnames are correct:

Code: Select all

COMMAND   PID USER   FD   TYPE DEVICE SIZE NODE NAME
sendmail 3572 root    4u  IPv4   8236       TCP localhost.localdomain:smtp (LISTEN)
omsmtpd  3774 root    4u  IPv4   8599       TCP <your-host-name>:smtp (LISTEN)


When you say "outbound queue" I assume you mean the sendmail mail spool, accessible via mailq. Also, is "domain.com" your domain or a user you're trying to send to's domain?

Try running

Code: Select all

sendmail -qI<ID> -v
where <ID> is the ID in the mailq command, and post the sendmail logs here for me.

mito wrote:PS. Also of note, I've always had a problem where all my mail is being received from 127.0.0.1 and I believe it is also due to this setting. If you know how to fix that as well, I'd love to hear it!


Can you post an example log of this as well?

Thanks :)


First of all, thank you for replying and trying to help me out!!!

I'll start off with this, because it's easy:
mito wrote:PS. Also of note, I've always had a problem where all my mail is being received from 127.0.0.1 and I believe it is also due to this setting. If you know how to fix that as well, I'd love to hear it!


After I posted this, I decided to do some more searches for this problem, now with the thought that it is related to the SMTPFILTER=TRUE option (previously I hadn't connected the two in my searches). This brought up this result, which helps to prove my theory, but the resolution isn't something that is really acceptable, where each message gives and error but is delivered anyways.

http://www.scalix.com/community/viewtop ... 7305#17305

Which logs are you wanting output from for this so I can show you those? (I'm still rather new at this whole email admin thing)


Next up, output of lsof -i:25 :

Code: Select all

[root@mail ~]# lsof -i:25
COMMAND    PID USER   FD   TYPE  DEVICE SIZE NODE NAME
sendmail  2863 root    4u  IPv4    7533       TCP localhost.localdomain:smtp (LISTEN)
omsmtpd   3267 root    3u  IPv4 4478426       TCP mail.mydomain.com:smtp->62.24.101.35:54260 (ESTABLISHED)
omsmtpd   3267 root    4u  IPv4    9015       TCP 192.168.21.31:smtp (LISTEN)
omsmtpd   3267 root    5u  IPv4    9016       TCP mail.mydomain.com:smtp (LISTEN)

There were also a ton of established connections after this. The 192.168.21.31 is a 2nd NIC I have in the server connected to my internal network. Yes I changed the hostname to mydomain but it did show the correct hostname of the server (email goes to mydomain.com and the hostname of the server is mail.mydomain.com).

Valerion wrote:When you say "outbound queue" I assume you mean the sendmail mail spool, accessible via mailq. Also, is "domain.com" your domain or a user you're trying to send to's domain?!

When I say outbound queue, I do mean the sendmail queue, I believe... (as I said, still kinda new). Its the outbound mail queue as reported by MailWatcher, the web-interface to MailScanner that I am using (which I believe is the sendmail outbound mail spool/queue). Also, it is my domain, so in this message instead of domain.com I changed to using mydomain.com to help alleviate some confusion.

Code: Select all

[root@mail ~]# sendmail -qIk9RIDhsV009130 -v

Running /var/spool/mqueue/k9RIDhsV009130 (sequence 1 of 1)
<maillist@mydomain.com>... Connecting to mydomain.com. via esmtp...
<maillist@mydomain.com>... Deferred: Connection refused by mydomain.com.


You said you have this running on the same machine. Does that mean you just have Scalix and Mailman on the same machine, or Scalix, MailScanner, and Mailman all on the same machine? I ask because I think the problem is that I'm throwing MailScanner into the mix as well, which is requiring that SMTPFILTER=TRUE option, which I think is causing my problems. Again, I'm new to this though, and that could be totally off-base...

Thanks again for your help!!!
Mito

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Mon Oct 30, 2006 11:12 am

Mmm ... this is strange. Can you try doing a

Code: Select all

telnet mydomain.com 25


and see what you get back? Also try it to the IP address instead of the hostname and see if you get the same back.

Also, when you do the sendmail -q, do a

Code: Select all

tail -f /var/log/maillog
and see what gets displayed there.

The combination as you have it should still work fine.

mito
Posts: 194
Joined: Fri Mar 24, 2006 11:33 am

Postby mito » Mon Oct 30, 2006 11:24 am

Thanks again for your help, and especially for the very fast reply!

Valerion wrote:Mmm ... this is strange. Can you try doing a

Code: Select all

telnet mydomain.com 25


Sure thing, here we go! (Note that while I do have an internal-network card on my mail server, this is still connecting via the internet like everyone else...)

Code: Select all

C:\>telnet mail.mydomain.com 25
220 mail.mydomain.com ESMTP Scalix SMTP Relay 10.0.1.3; Mon, 30 Oct 2006 10:14:10
 -0500 (EST)

C:\>telnet 1.2.3.4 25     (Real IP replaced with 1.2.3.4)
220 mail.mydomain.com ESMTP Scalix SMTP Relay 10.0.1.3; Mon, 30 Oct 2006  10:18:53
 -0500 (EST)


And here's the sendmail log. The result from sendmail -q was the same as before.


Code: Select all

[root@mail ~]# tail -f /var/log/maillog
Oct 30 10:19:37 mail sendmail[18820]: k9UFJVIS018820: to=<user1@mydomain.com>, delay=00:00:05, xdelay=00:00:01, mailer=relay, pri=37050, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k9UFJa9j018822 Message accepted for delivery)
Oct 30 10:19:39 mail sendmail[18810]: k9UFJPUG018810: from=<uaaeoa@cyber.net.pk>, size=26077, class=0, nrcpts=2, msgid=<QUARTERH6l6GYnwU4ma3138811e@web9.fit.com>, proto=ESMTP, relay=root@localhost
Oct 30 10:19:39 mail sendmail[18825]: k9UFJdpw018825: from=<uaaeoa@cyber.net.pk>, size=26249, class=0, nrcpts=2, msgid=<QUARTERH6l6GYnwU4ma3138811e@web9.fit.com>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Oct 30 10:19:39 mail sendmail[18825]: k9UFJdpw018825: to=<user2@mydomain.com>, delay=00:00:00, mailer=scalix, pri=86249, stat=queued
Oct 30 10:19:39 mail sendmail[18825]: k9UFJdpw018825: to=<user3@mydomain.com>, delay=00:00:00, mailer=scalix, pri=86249, stat=queued
Oct 30 10:19:39 mail sendmail[18810]: k9UFJPUG018810: to=<user2@mydomain.com>,<calendar@mydomain.com>, delay=00:00:14, xdelay=00:00:00, mailer=relay, pri=86077, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k9UFJdpw018825 Message accepted for delivery)
Oct 30 10:19:42 mail MailScanner[4581]: New Batch: Scanning 2 messages, 34492 bytes
Oct 30 10:19:45 mail MailScanner[4581]: Spam Checks: Found 2 spam messages
Oct 30 10:19:45 mail MailScanner[4581]: Virus and Content Scanning: Starting
Oct 30 10:19:55 mail sendmail[18845]: k9RIDhsV009130: to=<maillist@mydomain.com>, delay=2+21:06:11, xdelay=00:00:00, mailer=esmtp, pri=228993832, relay=mydomain.com. [64.14.56.90], dsn=4.0.0, stat=Deferred: Connection refused by mydomain.com.


Thanks again!
Mito


Return to “Third Party Integration”



Who is online

Users browsing this forum: No registered users and 1 guest