HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Problem with postfix install (http://www.howtoforge.com/forums/showthread.php?t=1234)

ctroyp 12th November 2005 21:39

Problem with postfix install
 
Using the Debian Sarge "Perfect Setup" when I got to the part to "telnet localhost 25" I get:
Code:

server1:~# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
Connection closed by foreign host.

The second time I try it doesn't close and I can enter "ehlo localhost" and nothing happens.
Here are the contents of my /etc/postfix/main.cf file:
Code:

# See /usr/share/postfix/main.cf.dist for a commented, more complete version

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
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

myhostname = server1.strec.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = server1.strec.com, localhost.strec.com, , localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = nonanonymous
broken_sasl_auth_clients = yes
smptd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
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
home_mailbox = Maildir/

virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names

strec.com is the domain name I entered during the Debian setup and is not an internet domain.

Should I try reinstalling postfix? If so, how do I go about that to make sure everything is removed completely?

till 13th November 2005 13:39

Cant find any errors in your main.cf. Do you get errors in your mail log:

/vat/log/mail.log

ctroyp 13th November 2005 14:46

Quote:

Originally Posted by till
Cant find any errors in your main.cf. Do you get errors in your mail log:

/vat/log/mail.log

Code:

Nov 13 08:33:06 server1 postfix/smtpd[31434]: fatal: unknown smtpd_sasl_security                                            _options value "nonanonymous" in "nonanonymous"
Nov 13 08:33:07 server1 postfix/master[24404]: warning: process /usr/lib/postfix                                            /smtpd pid 31434 exit status 1
Nov 13 08:33:07 server1 postfix/master[24404]: warning: /usr/lib/postfix/smtpd:                                              bad command startup -- throttling


falko 13th November 2005 17:30

The value you have in myhostname/mydomain (in this case server1.strec.com) must exist in DNS - as I've posted here before: http://www.howtoforge.com/forums/sho...?t=795&page=10

ctroyp 13th November 2005 17:34

Quote:

Originally Posted by falko
The value you have in myhostname/mydomain (in this case server1.strec.com) must exist in DNS - as I've posted here before: http://www.howtoforge.com/forums/sho...?t=795&page=10

Where do I find the DNS tables on my machine?

falko 13th November 2005 17:46

Quote:

Originally Posted by ctroyp
Where do I find the DNS tables on my machine?

http://www.howtoforge.com/forums/sho...5&postcount=97

ctroyp 13th November 2005 17:56

Quote:

Originally Posted by falko

Hmmm, I remember you posting this before, but I used strec.com during my Debian setup. Is this domain supposed to be an available Internet domain? I just use it locally and never planned to use it outside of my network. This is the same domain I used in my Fedora Core 4 setup and I never had a problem with my postfix. I guess I am confused with the use of the domain required during the O/S setup.

falko 13th November 2005 18:08

Quote:

Originally Posted by ctroyp
Is this domain supposed to be an available Internet domain?

Yes, that's right.

ctroyp 13th November 2005 18:13

Quote:

Originally Posted by falko
Yes, that's right.

Okay, if that is the case, then how can I change it to the domain of my main website?

Also, for postfix, I only need to change strec to the new domain, right? or, will need to reinstall postfix?

falko 13th November 2005 18:19

Quote:

Originally Posted by ctroyp
Okay, if that is the case, then how can I change it to the domain of my main website?

Also, for postfix, I only need to change strec to the new domain, right? or, will need to reinstall postfix?

You only need to change myhostname in /etc/postfix/main.cf and restart Postfix.


All times are GMT +2. The time now is 07:31.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.