LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
From: Andrew Speer <andrew.speer@isolutions.com.au>
To : Gaelyne Gasson , linuxsa@linuxsa.org.au
Date: Fri, 07 Jan 2000 01:44:11 +1030
Re: Sendmail config problem
Gaelyne,
Without seeing the sendmail m4 ".mc" file, from which your sendmail.cf was
generated, for your specific configuration, it is difficult to suggest
exactly what to try. I have put a few suggestions below which may help. Also
they may not ...
----- Original Message -----
From: Gaelyne Gasson <gaelyne@videocam.net.au>
To: <linuxsa@linuxsa.org.au>
Sent: Thursday, January 06, 2000 8:56 PM
Subject: Sendmail config problem
> Hi All,
>
> I have a sendmail config problem that I'm hoping someone can help
> with.
>
> The problem relates to relaying mail for an entire domain to a
> specific user on our system.
>
> We've been doing this in the past with no problems, but in recent days
> we've needed to make what I thought was going to be a minor change and
> now things don't work as they should.
>
> Anyway, the details are as follows.
>
> Our main server is 'videocam.net.au' we also host other sites, such as
> NAME.com.au and vcsweb.com All mail to anyone at NAME.com.au needs to
> go to a user on our system called 'joeshmoe'. All mail to vcsweb.com
> needs to go to 'rod'
>
> Currently our name server has all of these domains using the same IP
> address (203.38.186.193).
>
> The MX records for all domains point to mail.videocam.net.au (also
> 203.38.186.193).
>
> Our sendmail "access" file has the following entries
>
> NAME.com.au RELAY
> vcsweb.com RELAY
>
> To compliment this out mailertable file has the following entries
>
> NAME.com.au local:joeshmoe
> vcsweb.com local:rod
>
This is one way of doing things. It would seem that the "virtusertable" may
be also suited to your requirements. From the sendmail-cf README:
**start**
virtusertable A domain-specific form of aliasing, allowing multiple
virtual domains to be hosted on one machine. For example,
if the virtuser table contained:
info@foo.com foo-info
info@bar.com bar-info
@baz.org jane@elsewhere.net
then mail addressed to info@foo.com will be sent to the
address foo-info, mail addressed to info@bar.com will be
delivered to bar-info, and mail addressed to anyone at
baz.org will be sent to jane@elsewhere.net. The username
from the original address is passed as %1 allowing:
@foo.org %1@elsewhere.com
**end**
So perhaps in your case a virtusertable entry of
@NAME.com.au rod@NAME.com.au
may be all you need to get things working again (don't forget to rebuild the
map files from the text entries, see the sendmail README for more info).
Please bear in mind that this feature (virtusertable) needs to have been
enabled in the .mc file (eg sendmail.mc) that was used to generate the
sendmail.cf config file.
One of the easiest ways to tell is to see if a line like:
##### @(#)virtusertable.m4 8.8 (Berkeley) 10/6/1998 #####
is in your sendmail.cf file. If not, you will have to add the feature to the
xyz.mc config and regenerate the sendmail.cf file.
However you may want to also try just adding
NAME.com.au
to your sendmail.cw file, usually in /etc, or /etc/mail.
> THIS WORKS FINE. If I send mail to 'test@NAME.com.au' it is correctly
> delivered into the 'joeshmoe' mailspool.
>
> Likewise mail to 'test@vcsweb.com' find its way into the 'rod'
> mailspool.
>
> Now the problem. For various reasons we need to give 'NAME.com.au'
> its own ip address. No problem, we simply changed the "A" record so
> that it has the new ip (we left the MX records as they were - ie,
> pointing to 'mail.videocam.net.au').
>
> The new IP (for reference) is 203.38.186.199, so naturally we needed
> to add this to our interface table.
>
> /sbin/ifconfig eth0:1 203.38.186.199
>
> So far, all is well - the web and ftp server both work, and mail to a
> *known user on our system* is being accepted and delivered (eg
> rod@NAME.com.au gets correctly delivered to 'rod (@videocam.net.au) -
> BUT when we try to send mail to 'test@NAME.com.au' we are getting an
> 'unknown user' error message - In other words, the relay mechanism is
> now broken.
>
> In short, as long as NAME.com.au has the same IP address as
> videocam.net.au then all is fine, but if we change the IP and nothing
> else, the only mail that can be sent to NAME.com.au is if the user is
> known to videocam.net.au.
>
> Hopefully I've written this so that it makes sense to someone, and if
> anyone can give advise on what else I need to change in order to get
> it working correctly again I'd be very very thankful.
>
> Thanks in advance.
> Rod
>
>
Hope this was of some help,
Andrew Speer
Index:
[thread]
[date]
[subject]
[author]
Return to the LinuxSA Mailing List Information Page