[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Mail server aliases jsut disappeared!
- Subject: Re: [cobalt-users] Mail server aliases jsut disappeared!
- From: "Ken Marcus - Precision Web Hosting" <ken@xxxxxxxxxxxxxxxx>
- Date: Fri Jan 9 12:22:01 2004
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
----- Original Message -----
From: "Greg Hewitt-Long" <cobaltusers@xxxxxxxxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Friday, January 09, 2004 9:05 AM
Subject: [cobalt-users] Mail server aliases jsut disappeared!
> I've just had all the email aliases from a box disappear - all virtual
domains lost their email server from the gui mail server in site settings -
is there file I can edit or keep an eye on to make sure these things don't
happen?
>
> cheers
>
> Greg
> --
Greg,
This is what I do to fix it:
#one line below
ls /home/sites/|awk -F '.' ' {if ($0 ~ /www/) {print $2"."$3}}' >>
/etc/mail/local-host-names
#one line below
ls /home/sites/|awk -F '.' ' {if ($0 ~ /www/) {print "mail."$2"."$3}}' >>
/etc/mail/local-host-names
#one line below
ls /home/sites/ |awk -F '.' ' {if ($0 ~ /www/) {print
"@"$2"."$3"\t%1@www."$2"."$3}}' > /tmp/newvirt
#one line below
ls /home/sites/ |awk -F '.' ' {if ($0 ~ /www/) {print
"@mail."$2"."$3"\t%1@www."$2"."$3}}' >> /tmp/newvirt
#copy the newvirt file to the route section of the /etc/mail/virtusertable
cat /tmp/newvirt
#copy the text displayed by the cat and after opening the virtusertable,
than manually paste it into the route section
pico -w /etc/mail/virtusertable
makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
/etc/rc.d/init.d/sendmail stop
killall -9 sendmail
/etc/rc.d/init.d/sendmail start
----
Ken Marcus
Precision Web Hosting
ken@xxxxxxxxxxxxxxxx
http://www.precisionweb.net