Sendmail Config

Posted on 2003-11-17
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
LVL 26

Accepted Solution

jar3817 earned 125 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 125 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, enter 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,, type its name into the list box and click the Save button (see Figure 10-56).

check this link.

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Cpanel and Mail logs 1 46
CentOS7 Xvnc gdm login 9 179
Open BDS Pf 3 44
Help instaling linux on vmware 36 75
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

760 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now