- # edit /etc/mail/access to add local IP
- if ! grep "$PLC_RT_IP" /etc/mail/access ; then
- echo "$PLC_RT_IP RELAY" >> /etc/mail/access
- makemap hash /etc/mail/access.db < /etc/mail/access
- fi
- if [ ! -f /etc/smrsh/rt-mailgate ] ; then
- ln -s /usr/sbin/rt-mailgate /etc/smrsh/rt-mailgate
- fi
- if ! grep "$PLC_RT_HOST" /etc/mail/local-host-names ; then
- # edit /etc/mail/local-host-names
- echo "$PLC_RT_HOST" >> /etc/mail/local-host-names
- IP=$( gethostbyname $PLC_RT_HOST )
- REVHOST=$( gethostbyaddr $IP )
- if [ -n "$REVHOST" ] ; then
- echo "$REVHOST" >> /etc/mail/local-host-names
- fi
- fi
- m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
- service sendmail restart
+ # edit /etc/mail/access to add local IP
+ if ! grep "$PLC_RT_IP" /etc/mail/access ; then
+ echo "$PLC_RT_IP RELAY" >> /etc/mail/access
+ makemap hash /etc/mail/access.db < /etc/mail/access