Computing.Net > Forums > Linux > Sendmail and hosts.allow

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Sendmail and hosts.allow

Reply to Message Icon

Name: Nagy
Date: December 29, 2002 at 22:24:11 Pacific
OS: Linux Redhat 8.0
CPU/Ram: 256
Comment:

Dear All,
I have Redhat 8.0 and sendmail 8.12.5 installed and configured, I would like to use hosts.allow and deny to restrict the access to that server. This server run as Mail Server only. I did the following:

Case 1:
hosts.deny
ALL:ALL

hosts.allow
ALL:192.168.32.

Everything working perfect for local users for case 1

Case 2:
hosts.deny
ALL:ALL

hosts.allow
sendmail:ALL
sshd:ALL
imaps:ALL
pop3s:ALL

In case 2, no one can not retrieve their email and got an error message:

Your 'Inbox' folder was not polled for its unread count. Your server has unexpectedly terminated the connection. Possible causes for this include server problems, network problems, or a long period of inactivity. Account: 'USER1 IMAP', Server: 'mail.domain.com', Protocol: IMAP, Server Response: '', Port: 993, Secure(SSL): Yes, Error Number: 0x800CCC0F

I would like to know, howto restrict the access to this server for local and remote (roaming) users.

Please help
Many thanks for your reply in advance



Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: December 30, 2002 at 03:52:45 Pacific
Reply:

An easy answer is to not have valid login accounts for your mail clients. Setting the login shell to '/bin/false' or something similar (system dependent) will allow them to authenticate, send and recieve mail but not login to the mail server.


0

Response Number 2
Name: Nagy
Date: December 30, 2002 at 08:54:20 Pacific
Reply:

Many thanks for your reply, your reply let me know my mistake which I should type the daemon not the service name like:

hosts.allow
sendmail:ALL
sshd:ALL
imapd:ALL
ipop3d:ALL


0

Response Number 3
Name: my 2 cents
Date: December 30, 2002 at 22:32:51 Pacific
Reply:

Sendmail configuration has been changed from redhat 7.2 due to security. I did the following steps for my mail server

1) Edit /etc/hosts.deny

ALL except sendmail: ALL

2) Edit /etc/mail/sendmail.mc

Comment out Dameon_option (127.0.0.1)

(it is towards the end)

3) run the following command

m4 /etc/mail/sendmail.mc > /etc/sendmail.cf

hope this helps


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Sendmail and hosts.allow

hosts.deny and hosts.allow www.computing.net/answers/linux/hostsdeny-and-hostsallow/10586.html

networking with linux and windows 2000 www.computing.net/answers/linux/networking-with-linux-and-windows-2000/10237.html

X11, securing linux box, and other intresting questions. www.computing.net/answers/linux/x11-securing-linux-box-and-other-intresting-questions/1998.html