Solved

Sendmail 8.9.0 relay question

Posted on 1998-10-28
2
295 Views
Last Modified: 2013-12-15
Hi,

I have a sendmail configuration question:

I just upgraded to sendmail 8.9.0 and realized that the configuration
has changed from earlier versions. I went to the sendmail faq site
(http://www.sendmail.org/faq/) where they have a very nice tutorial on
sendmail. My particular problem was that the new version of sendmail
turns off relaying for other hosts by *default*, which means that
not only spammers will have a hard time to abuse your host for relaying
spam, but also accountholders on your system who use popmail will have
trouble to get their outbound mail relayed.

Anyway, on that faq there is a section that deals with this issue:
http://www.sendmail.org/tips/relaying.html
and it mentions a /etc/mail/relay-domains file, and "features" that can
be added. How do I optimally configure this
file such that mail works properly for popmail clients, no matter where
they come from (I have a few coming in from outside of our domain using
different ISP's, which may change from time to time)?
They do not show an example of the correct syntax of this relay-domains
file, and was wondering if someone here can tell me how to set this file up
properly.


Right now I have:

FEATURE(promiscuous_relay)
FEATURE(rbl)

I am not even sure if this is the correct syntax.
FEATURE(promiscuous_relay) is supposed to let everyone use my
machine for relay (including spammers) and FEATURE(rbl) is supposed
to deny service to sites listed on the public spamming blacklist at
http://maps.vix.com/ (what a great idea!).  I am not sure about the
syntax and also not sure if I need other configurations to make this
work. Any help with this would be appreciated...
0
Comment
Question by:demeler
2 Comments
 
LVL 1

Accepted Solution

by:
henckens earned 150 total points
ID: 1631271
The relay-domains is the right answer.  The format can be as follows

1.1.1.
(for a whole subnet)
domain.com
(for a whole domain)
1.1.1.1
(for a single ip address)

Just start hit enter after every line, so it's listed vertically.  That's all there is to it.  If you want to give someone relay permissions outside of the domain, you can simply add the dialinlocation.domain.com to it.

Activate it in your sendmail.cf file in the following line
FR-o /path/relay-domains

Much luck,
Andres
0
 

Author Comment

by:demeler
ID: 1631272
Your answer only partially answers my question:

I don't want to manually add each possible domain from which someone may be calling, since this changes all the time for roaming users. I basically want to leave the system open for
all domains, except for those blacklisted on maps.vix.com.
I understand that this can be set up such that sendmail automatically retrieves the latest database from maps.vix.com
and disables relaying for those sites. How do I do it? Also
in /etc/mail/relay-domains? How do I use the FEATURE(xxx) command?

Thanks!!
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LINUX ZIP - UNCOMPRESS WINDOWS PATH 3 86
Linux "time" command output redirection 16 117
Oracle 12c patching 1 60
Best way to virtualise a remote Linux server 2 50
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

911 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