LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   SMTP & IMAP OK but Sendmail Connection refused (https://www.linuxquestions.org/questions/linux-general-1/smtp-and-imap-ok-but-sendmail-connection-refused-106138/)

OtinDaku 10-19-2003 11:09 PM

SMTP & IMAP OK but Sendmail Connection refused
 
Tried this in the networking forum with no luck so thought I'd try here ...

Stumped,

- RH9 behind a firewall and using an alternate smtp port as 25 is blocked by my isp
- Both IMAP and SMTP mail work fine to either local or internet recipients... can send and receive using IMAP and SMTP to myport using Outlook on a wintel client ... can send and receive using local mailbox and SMTP to myport using Evolution right on the server ... also have SquirrelMail sending and receiving using SMTP to myport

The issue is that sendmail doesn't work...

sendmail -v anybody@mydomain.com gives:
anybody@mydomain.com... Connecting to [127.0.0.1] via relay...
anybody@mydomain.com... Deferred: Connection refused by [127.0.0.1]


And the log shows:
Oct 18 11:28:09 myserver sendmail[18528]: h9IFS4qI018528: from=root, size=5, class
=0, nrcpts=1, msgid=<200310181528.h9IFS4qI018528@myserver.mydomain.com>, relay=root@
localhost
Oct 18 11:28:09 myserver sendmail[18528]: h9IFS4qI018528: to=anybody@mydomain.com, ctla
ddr=root (0/0), delay=00:00:05, xdelay=00:00:00, mailer=relay, pri=30005, relay=
[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.
0.1]


Linux firewall is NOT enabled. And telnets to myport using any of hostname, localhost, and 127.0.0.1 work fine.

Help!

DavidPhillips 10-20-2003 05:41 AM

You sould try setting it up to relay through your ISP's mail server, then it should be ok.

nshoboul 10-20-2003 07:05 AM

could you help me by giving me all the steps to set up an imap server ?

thanx in advance

OtinDaku 10-20-2003 07:36 AM

nshoboul,

Check out http://en.tldp.org/HOWTO/Cyrus-IMAP.html

OtinDaku 10-20-2003 07:39 AM

David,

Thanks for the response and just to confirm, are you talking about adding DSISPMailServer to sendmail.cf? If so, I've had that in there all along. It resolved my initial setup problem of not being able to send mail at all. After adding it, smtp mail started working, although sendmail still won't work.

What's interesting is that even using sendmail to a local recipient gives the errors described above.

Other thoughts?

trickykid 10-20-2003 07:49 AM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

You also posted this earlier in Networking which it can be replied to there.


All times are GMT -5. The time now is 09:39 AM.