I have a fully working cyrus+sendmail mail server hosting all users for foo.com. Company foo has been acquired by company bar and it has been decided that bar.com is the new domain of choice. The administrator of bar.com has added a pile of redirects to send various user at bar.com addresses so they come up to my server at foo.com. My users have changed their From: addresses to user at bar.com and we have a basic working system. However, if one user in former company foo mails another user in the same office their mail now goes offsite to bar.com's mail server and is then redirected back in again, which works but is bad for bandwidth. Ideally I'd like to teach sendmail that a subset of bar.com users are now local. However if I try this in the /etc/aliases file, I get the warning "cannot alias non-local names". Has anyone got any better ideas how to do this- or a better suggestion as to where I should ask this question again? -- Cheers, Tony
centos-bounces at centos.org <> scribbled on Sunday, April 09, 2006 3:14 PM:> I have a fully working cyrus+sendmail mail server hosting all > users for foo.com. Company foo has been acquired by company > bar and it has been decided that bar.com is the new domain of > choice. The administrator of bar.com has added a pile of > redirects to send various user at bar.com addresses so they come > up to my server at foo.com. My users have changed their From: > addresses to user at bar.com and we have a basic working system. > > However, if one user in former company foo mails another user > in the same office their mail now goes offsite to bar.com's > mail server and is then redirected back in again, which works > but is bad for bandwidth. > > Ideally I'd like to teach sendmail that a subset of bar.com > users are now local. However if I try this in the > /etc/aliases file, I get the warning "cannot alias non-local names". > > Has anyone got any better ideas how to do this- or a better > suggestion as to where I should ask this question again?Did you try the virtusertable instead of aliases yet? Mike
Am So, den 09.04.2006 schrieb Tony um 22:13:> I have a fully working cyrus+sendmail mail server hosting all users > for foo.com. Company foo has been acquired by company bar and it has > been decided that bar.com is the new domain of choice. The > administrator of bar.com has added a pile of redirects to send various > user at bar.com addresses so they come up to my server at foo.com. My > users have changed their From: addresses to user at bar.com and we have a > basic working system. > > However, if one user in former company foo mails another user in the > same office their mail now goes offsite to bar.com's mail server and > is then redirected back in again, which works but is bad for > bandwidth. > > Ideally I'd like to teach sendmail that a subset of bar.com users are > now local. However if I try this in the /etc/aliases file, I get the > warning "cannot alias non-local names". > > Has anyone got any better ideas how to do this- or a better suggestion > as to where I should ask this question again?> TonyIn sendmail.mc set: define(`_VIRTUSER_STOP_ONE_LEVEL_RECURSION_')dnl LOCAL_CONFIG C{VirtHost}bar.com In virtusertable set: usera at bar.com %0 userb at bar.com %0 dnl all others are delivered locally @bar.com %1 Alexander -- Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773 legal statement: http://www.uni-x.org/legal.html Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp Serendipity 01:05:48 up 27 days, 1:53, load average: 0.48, 0.65, 0.54 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Dies ist ein digital signierter Nachrichtenteil URL: <http://lists.centos.org/pipermail/centos/attachments/20060410/63f2799d/attachment-0001.sig>
On 4/10/06, Alexander Dalloz <ad+lists at uni-x.org> wrote:> > In sendmail.mc set: > > define(`_VIRTUSER_STOP_ONE_LEVEL_RECURSION_')dnl > LOCAL_CONFIG > C{VirtHost}bar.com > > In virtusertable set: > > usera at bar.com %0 > userb at bar.com %0 > dnl all others are delivered locally > @bar.com %1 >That's really close thanks. However I only know the userlist for foo.com, so I have to do the wildcarding backwards to how you showed: in virtusertable, I'm trying: dnl redirect certain known users mail straight back in locally first.last at bar.com i.last at foo.com first2.last2 at bar.com i.last2 at foo.com dnl allow unknown users to flow offsite @bar.com %0 But of course the %0 is wrong. I need to persuade it to just deliver as per dns mx records as normal - or even specify the mx if needed. This part I'm still researching... -- Cheers, Tony