Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Sendmail Config

Posted on 2003-11-17
Medium Priority
Last Modified: 2012-06-27

I've got my linux webserver working finally, using webmin and virtualmin,
and i am able to recieve emails for my domain.
My problem comes in when i try sending mail.....
I get an error saying that relaying is not allowed.
I've messed around with this but i cannot find where I can allow relaying for any domain hosted on the server...
(not just a specific mailbox or user)

(i'm not physically using the server to send the mail, its through another computer on the network).
So how do i configure sendmail?

if its possible through webmin then that would be even more helpfull...

Question by:11ods
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 26

Accepted Solution

jar3817 earned 500 total points
ID: 9765467
you need to add entries for your clients in the access database.  This is usually located somewhere near /etc/mail/access.  You need to add rules for the clients who should be relayed:

localhost.localdomain     RELAY
localhost                       RELAY                      RELAY
192.168.                       RELAY

this will allow localhost and anyone with an ip of 192.168.*.* to send mail through the server.  Then you just have to remake the access database.  My /etc/mail directory has a Makefile in it so I just run "make" to remake the database, but you can do it by hand using: makemap hash access.db < access  inside the /etc/mail directory.
LVL 24

Assisted Solution

shivsa earned 500 total points
ID: 9765816
This is a new security feature to prevent someone from using your email server for spam mail.

u have to follow these to make sure u do not get this error.
User's IP address most be added to the /etc/hosts file
Legal IP addresses or domain names must be added to /etc/mail/access file
To allow all IP's in starting with 192.168.1, enter 192.168.1 relay
To allow a domain name such as ahi.com, enter ahi.com relay
if u are using webmin
1. Allow relay from approved email addresses using the spam control feature

Relay Domains

If you have domain routing configured, you must list those domains as domains to which relaying is allowed. This is a spam control feature that prevents spammers from using your system as an open email relay. In addition, Sendmail will reject incoming mail messages that are not for local users and not for a listed domain, further strengthening your system against hostile spammers.

To allow relaying to a domain named, for example, bugcorp.com, type its name into the list box and click the Save button (see Figure 10-56).

check this link.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question