[H-GEN] Sendmail Question

Robert Brockway robert at timetraveller.org
Mon Mar 18 03:10:06 EST 2002


[ Humbug *General* list - semi-serious discussions about Humbug and  ]
[ Unix-related topics.  Please observe the list's charter.           ]
[ Worthwhile understanding: http://www.humbug.org.au/netiquette.html ]

On Mon, 18 Mar 2002, Martin C wrote:

> [ Humbug *General* list - semi-serious discussions about Humbug and  ]
> [ Unix-related topics.  Please observe the list's charter.           ]
> [ Worthwhile understanding: http://www.humbug.org.au/netiquette.html ]
> 
> Could any kind soul shed some light on a Sendmail problem.
> Its a fresh install of Sendmail version 8.9.3, everything works fine but for
> 'relaying denied' when trying to send emails. The only way so far around
> this I found is by adding a domain to Relay Domains(CR), surely there has to
> be a better way?

Hi Martin.  You may also facilitate relaying by adding a RELAY entry to
the access file /etc/mail/access (exact location can vary).  You'll need
to see if you have it setup in sendmail.cf (just grep for access to do
this).

Once edited you update access thusly:

cd /etc/mail
cat access | makemap hash access [1]

[1] You may need to do cat access | makemap dbm access depending on the
format that the data is saved in.

The access file can be updated on the fly (no need to restart sendmail
unlike a change to relay-domains), however the access method is a little
slower than relay-domains so relay-domains is better for a busy mail
server.

This all assumes that your "mc" file is setup in a reasonably standard
way.  You could, for example, allow all relaying by default but that would
be a bad bad idea.

See http://www.sendmail.org for a wealth of useful info on using m4 to
create a sendmail.cf file.
Cheers,
	-Rob

-- Robert Brockway B.Sc. email: robert at timetraveller.org  ICQ: 104781119
   Linux counter project ID #16440 (http://counter.li.org)
   blake: up 67 days, 16:36,  0 users,  load average: 1.90, 1.86, 1.83
   "The earth is but one country and mankind its citizens" -Baha'u'llah


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.



More information about the General mailing list