POSTFIX MAIL:
sendmail must b removed: backup /etc/aliases
rpm -qa|grep sendmail
-e sendmail sendmail-cf sendmail-doc --nodeps
ps -aux|grep sendmail
--> to kill whats left on the memory
setup the postfix rpm
at /etc/postfix/main.cf:
command_directory = /usr/sbin
uncomment #myhostname = server_name.domain_name.com (FQDN)
uncomment #mydomain = ros.co.il
uncomment #inet_interfaces
after a firewall uncomment relay = ros.co.il
(uncomment #default_transport = smtp)
alias_maps = hash:/etc/postfix/aliases
(put aliases at postfix dir)
run command: newaliases
comment out: #mail_spool_directory=/var/spool/mail
useradd mosh, postfix start
info:
if u use procmail mailbox_command:/usr/bin/procmail
for multiple domains:
#relay_domains=$mydestination,/etc/postfix/relay_domains
and there u put ip or: here.com, there.com
errors:
when starting u get fatal: chdir(/usr/sbin/postfix)
not a directory: change
main.cf:command_directory to /usr/sbin
|