SENDMAIL:
setup:imap2001
(sendmail, sendmail-cf,sendmail-doc,m4,
procmail,imap-devel,xinetd,krb5-libs)
7.3: /etc/mail/sendmail.mc take out the dnl
DEAMON_OPTIONS
(Port=smtp,Addr=192.168.1.15, Name=MTA)
at rh9 remove all: Addr=192.168.1.15 or u
will get error when sending from prompt:
connection refused by [127.0.0.1]
FEATURE(accept_unresolvable_domains)
m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
service xinetd/sendmail start
chkconfig ipop3 on (/etc/xinetd.d/ipop3
--> disable = no)
at /etc/mail/access add that u want to send
to relay to: 192.168.0 RELAY
then add users..
for static IP:
at /etc/mail/local-host-name add ros.co.il
at /etc/sendmail.cf #local info# under the
#Dj$w line add: Djros.co.il
mapi client:
for local net: if there is no gateway and name
server it works faster
info:
-at /etc/mail/virtusertable if u host 2 domains
(comming to your mail server)
like ros.co.il,ronensh.com u do:
ronen@ros.co.il rx1
ronen@ronensh.com rx2
# the client users authenticate with rx1/2
receives their domain mails & send as# their
reply address-their domain
noam@ros.co.il noam
@ros.co.il help@ros.co.il
<--here all mail other than the 2
above will be redirected to help@ros.co.il !
other known users must be at the file!
when finished run at /etc/mail: make
-at the end of /etc/aliases write root: ronen
--> to direct roots mail to help
used also for mailing list:
family: brother,father,sun
to update run: newaliases
-/var/spool/mail/user_name
--> mail before opening
-/home/user_name/mbox --> mail after opening
-/etc/syslog.conf --> manage mail account
-main log: /var/log/maillog
-to see output
--> xterm -e tail -f /var/log/maillog &
-sendmail -d0 < /dev/null
(must c the version 2 system identity)
-u need a resolving dns! (MX RECORD)
cp /usr/share/sendmail-cf/cf/redhat.cf /etc/sendmail.cf)
pop mail: (u can check it by telnet)
Webmin-0.980-1.noarch.rpm
and Usermin-0.920.-1.noarch.rpm:
find webmin at http://localhost:10000
usermin http://localhost:20000
u can use it with fetchmail.
NEVER use the tools that webmin offer you- it
will distroy and mess with
what you did from the command prompt!!
errors:
-at maillog if stat=sent =ok,stat=queued:
check sysconfig/network and hosts!
-after uninstalling postfix u get a log
error as:"did not issue
MAIL/VRFY/ETRN during connection to MTA:
reboot the server
-when at maillog u c:~cant send to
picasso.co.il.domain.org - remove GW
|