- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Sendmail: receive but no send
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2004 06:43 AM
09-15-2004 06:43 AM
Sendmail: receive but no send
Currently I have a webmail server that can send and receive from anywhere. I'd like to shutdown all sending of email, and receive only on a couple specified domains.
For the receiving, can I just DENY all domains by default in access.db and ACCEPT only the domains I want to receive from?
Any ideas on what to do about stopping all sending?
Thanks for any tips!
CH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2004 03:27 PM
09-15-2004 03:27 PM
Re: Sendmail: receive but no send
connect:1 REJECT
connect:2 REJECT
connect:3 REJECT
...
connect:255 REJECT
to your access file. You'd then add some OK entries to override the REJECTS for the domains you want to accept mail from. I don't have a way to check any of this right now, so I've got no idea if it will really work.
Good luck,
Seth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2004 03:54 PM
09-15-2004 03:54 PM
Re: Sendmail: receive but no send
Yes, you can use "access.db" file to ACCEPT or DENY the recieving mails.
You can also use the same "access.db" file for stopping the sending mails.
By default the later versions of sendmail the RELAYs only the localhost. You cannot send mails to any other the domains other than the same domain. That is, For eg. if your domain is abc.com you can only send mails to the abc.com from abc.com you cannot send mails to the other domains. If you want to do so, you can add an entry in the access file as
For eg. if your network is 200.10.1.X then the /etc/mail/access file entry will look like:
200.10.1 RELAY
First 3 values of the IP Address is enough. This will allow all the mails sending from this network.
As your need, By default it should only allow localhost to RELAY the mails.
NOTE: After entering an entry in th /etc/mail/access file don't forget to give
#cd /etc/mail/
#makemap hash access.db
This will create the access.db file. After that restart the sendmail service
#/etc/rc.d/init.d/sendmail restart
Regards,
Senthil Murugan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 10:28 PM
09-21-2004 10:28 PM
Re: Sendmail: receive but no send
You can generate .mc file with
FEATURE(relay-domain) and make the
file empty and put the domins you wanted
in access file.
This will solve your problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2004 02:36 AM
09-22-2004 02:36 AM
Re: Sendmail: receive but no send
The script I'm attaching will process the .mc file, build a sendmail.cf file and the access.db database.
For more on the access.db file http://www.sendmail.org
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com