On Thu, 2003-02-13 at 10:49, Howard Lowndes wrote:
> I need to do a quick fix in Sendmail to allow a specific IP unresolvable
> _address_ to relay emails rather than a specific domain name or host name.
>
> Where do I need to put this, which file?
Hello Howard,
1) Check /etc/mail/sendmail.cf and look for line that looks similar
or identical to this:
Kaccess hash -T<TMPF> /etc/mail/access
If it is enabled, one can conclude the following:
a) Access list uses HASH database;
b) Access list in in /etc/mail/access file;
2) So, edit /etc/mail/access (or as I often rename it:
/etc/mail/access.txt) and add:
192.168.33.66 OK
If you not only want to allow this unresolvable IP address to
send email to your domain, but relay through you too (to send
messages to other domains THROUGH your gateway):
192.168.33.66 RELAY
3) Rebuild the hashed database:
cd /etc/mail
makemap hash access <access.txt
That is all. Stay happy and be at peace with computers and people.
Dusan U. Baljevic, Senior Consultant/Unix Systems
Hewlett-Packard, Australia
Member of: ACM, ACS, IEEE, WIA
Web: http://www.matra.com.au/~dusan/
Amateur Radio: VK2COT, VK4FCW, YU6FO, YU6ZCW
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug