Stumped II....

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

Lunch2000

Stumped II....

Postby Lunch2000 » Fri Jun 23, 2006 5:00 pm

Its back...with no changes that I can see the problem is back......
RE my first post on this issue

I am utterly stumped....

The ESMTP server accepts mail from all domains for delivery to local users but won't relay mail at all. Any attempt to connect to the ESMTP server @ 127.0.0.1 is refused. The quirky thing however is that if I use the FQND of the server or the interface IP address I can access the ESMTP server and it will relay. Since it appears that scalix uses the 127.0.0.1 address to relay mail it means my mail will not go out. I scanned the forums and checked the smtpd.cfg file , and it is set to allow relay from 127.0.0.1, checked my iptables and it also does not appear to prevent me from connecting to 127.0.0.1. Can someone tell me what else I should check?

The sever is a pretty fresh install on a Fedora core 4 machine.

Here is the entry in the /var/log/maillog

Jun 23 15:55:44 sls-ce8p3 sendmail[2621]: k5NJtgxI002621: to=<tnorwood@bitxbit.com>, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31137, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

And here is what happens when I try to telnet to 25

[root@sls-ce8p3 ~]# telnet 127.0.0.1 25
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused

HELP!!!!! Why is it doing this....when it was working this morning at around noon, I sent and recieved a bunch of e-mails. Then for some reason the Sendmail started again and it all died. I stopped sendmail and used chkconfig to make sure it would not kick off during a reboot and restarted the machine but it still won't work.

jryden
Posts: 73
Joined: Fri May 26, 2006 8:32 pm
Location: Los Angeles, USA

Postby jryden » Fri Jun 23, 2006 5:24 pm

Not sure how you are set up, but why did you stop Sendmail? I think the "general" setup is supposed to be (for incoming mail):

public ip/Scalix --> localhost/Sendmail --> Scalix

and for outgoing mail:

Scalix --> Sendmail --> internet

So if you stop Sendmail obviously you will have problems. If you're set up differently you'll have to give some more detail about exactly how

Lunch2000

Then I am in pickle

Postby Lunch2000 » Fri Jun 23, 2006 11:09 pm

If I run sendmail it listens on port 25 and bounces any server that trys to deliver mail to the server.

The following recipient(s) could not be reached:

tnorwood@crashzone.us on 6/23/2006 11:14 PM
You do not have permission to send to this recipient. For assistance, contact your system administrator.
<mail.bitxbit.com #5.7.1 smtp;550 5.7.1 <tnorwood@crashzone.us>... Relaying denied>


So if I run Sendmail mail will go out but can't get in, but if I shut off sendmail, mail gets delivered but I cannot send.

GRRRRRRRR

Lunch2000

also in /var/log/maillog

Postby Lunch2000 » Fri Jun 23, 2006 11:15 pm

I get the following entries

Jun 23 22:07:54 sls-ce8p3 sendmail[2584]: k5O27ssF002584: ruleset=check_rcpt, arg1=<tnorwood@cra
shzone.us>, relay=nt2exch4.asp.bitbybit.net [64.158.178.194], reject=550 5.7.1 <tnorwood@crashzo
ne.us>... Relaying denied
Jun 23 22:07:54 sls-ce8p3 sendmail[2584]: k5O27ssF002584: from=<tnorwood@bitxbit.com>, size=0, c
lass=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=nt2exch4.asp.bitbybit.net [64.158.178.194]
Jun 23 22:10:58 sls-ce8p3 sendmail[2600]: k5O2AmJ7002600: localhost.localdomain [127.0.0.1] did
not issue MAIL/EXPN/VRFY/ETRN during connection to MTA

Lunch2000

Just confirmed it

Postby Lunch2000 » Fri Jun 23, 2006 11:44 pm

I checked if I telnet to the configured IP address on port 25 I get sendmail instead of the Scalix ESMTP daemon, however I can only connect if I telnet to the port from the local machine. If I try to telnet to the server from another server the connection times out. If I stop Sendmail I can connect to the Scalix smtp daemon on the configured IP address.

jryden
Posts: 73
Joined: Fri May 26, 2006 8:32 pm
Location: Los Angeles, USA

Postby jryden » Sat Jun 24, 2006 12:18 am

Make sure you have:

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

in your sendmail.mc file. Then rebuild sendmail.cf, run omsendin, restart sendmail, then restart scalix smtpd service with omoff -d0 smtpd, omon smtpd. Sendmail will now be listening on 127.0.0.1 and Scalix SMTP Relay will be listening on all other IPs/interfaces and all will be good in the world. :)

Lunch2000

Sendmail rebuild

Postby Lunch2000 » Sat Jun 24, 2006 9:54 am

would you mind telling me what steps to take to do this? The proscribed line exists in my
/etc/mail/sendmail.mc file. I ran M4 on it and generated a sendmail.cf file in my /etc/mail directory. I then ran omsendin, I followed the other steps but still have the same problem, I don't think sendmail is listening on 127.0.0.1.

Lunch2000

More info.....

Postby Lunch2000 » Sat Jun 24, 2006 11:35 am

So I did some digging and found that my sendmai.cf file lacked the following lines....

# SMTP daemon options

O DaemonPortOptions=Name=NoMTA, Addr=127.0.0.1, M=E

# SMTP client options
#O ClientPortOptions=Family=inet, Address=0.0.0.0

# Modifiers to define {daemon_flags} for direct submissions
#O DirectSubmissionModifiers

# Use as mail submission program? See sendmail/SECURITY
O UseMSP=True


Possibly more, when I checked the /usr/share/sendmail-cf/cf/submit.cf
file I found these lines, so I backed up the old sendmail file and then copied the submit.cf
and renamed is sendmail.cf. Now when I try to start Sendmail I get the following error.

Starting sendmail: 550 Mail submission program cannot be used as daemon
[FAILED}

...........................................AAAAAUUUUUUUUUUGGGGGGGGHHHHHHHHHHHH!!!!!!!!

Lunch2000

Got it.....

Postby Lunch2000 » Sat Jun 24, 2006 11:52 am

Thanks for your help...it took some finegaling to get the proper lines to bind sendmail to the loopback into the cf......Thanks

Tim

shawnstott
Posts: 10
Joined: Fri Oct 13, 2006 4:59 pm

Could you post your sendmail.mc file?

Postby shawnstott » Mon Dec 04, 2006 1:13 pm

At least the part with the properly configured added lines. I did an upgrade from 10 to 11 and I am getting the same error connection to the MTA.

Thank you.


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 4 guests