View Single Post
  #29  
Old 16th December 2006, 13:40
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by falko
Please log in as root instead of using sudo.
Hi falko,

Noted.

After erasing Sendmail and running;
# apt-get install postfix

Postfix is now running and postconf found

$ ps aux | grep postfix
Code:
root      5136  0.0  0.1  29248  1160 ?        Ss   16:38   0:00 /usr/sbin/saslauthd -m /var/spool/postfix/var/run/saslauthd -r -a pam
root      5141  0.0  0.0  29248   740 ?        S    16:38   0:00 /usr/sbin/saslauthd -m /var/spool/postfix/var/run/saslauthd -r -a pam
root      5143  0.0  0.0  29248   672 ?        S    16:38   0:00 /usr/sbin/saslauthd -m /var/spool/postfix/var/run/saslauthd -r -a pam
root      5144  0.0  0.0  29248   672 ?        S    16:38   0:00 /usr/sbin/saslauthd -m /var/spool/postfix/var/run/saslauthd -r -a pam
root      5145  0.0  0.0  29248   672 ?        S    16:38   0:00 /usr/sbin/saslauthd -m /var/spool/postfix/var/run/saslauthd -r -a pam
root      6360  0.0  0.1  19552  2020 ?        Ss   17:58   0:00 /usr/lib/postfix/master
postfix   6362  0.0  0.1  20628  1980 ?        S    17:58   0:00 qmgr -l -t fifo -u
postfix   6372  0.0  0.1  20588  1960 ?        S    17:58   0:00 proxymap -t unix -u
postfix   6971  0.0  0.1  20584  1940 ?        S    19:38   0:00 pickup -l -t fifo -u -c
satimis   6983  0.0  0.0   3948   908 pts/0    R+   19:39   0:00 grep postfix
$ which postconf
/usr/sbin/postconf

But the old problem returned failing to send mail via relayhost.

$ cat /etc/postfix/main.cf | grep relayhost
relayhost = [ndsmtp.netvigator.com]

Before installing Sendmail I was able sending mails via ISP mail server.

New domain:- satimis.homelinux.com

$ sudo telnet localhost 25
Code:
Trying 127.0.0.1...
Connected to localhost.satimis.homelinux.com.
Escape character is '^]'.
ehlo satimis.homelinux.com
(it hangs here)
$cat /etc/postfix/main.cf
Code:
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

#myhostname = server1.example.com
#myhostname = mail.satimis.freeddns.com
myhostname = satimis.homelinux.com
#mydomain = satimis.freeddns.com
mydomain = satimis.homelinux.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
#myorigin = /etc/mailname
#mydestination = /etc/postfix/local-host-names
myorigin = $myhostname
mydestination = $myhostname, localhost.$mydomain, localhost
#relayhost = satimis.homelinux.com
relayhost = [ndsmtp.netvigator.com]
mynetworks = 127.0.0.0/8, 192.168.0.0/24
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reje$smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_type = cyrus

smtp_tls_note_starttls_offer = yes
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
mailbox_command =
home_mailbox = Maildir/
virtual_maps = hash:/etc/postfix/virtusertable
$ /etc/hosts
Code:
127.0.0.1       localhost.satimis.homelinux.com  localhost
192.168.0.100   mail.satimis.homelinux.com mail

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
$ cat /etc/hostname
Code:
satimis.homelinux.com
Tks


B.R.
satimis
Reply With Quote