HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Perfect Setup - Fedora Core 3 - saslauthd problem (http://www.howtoforge.com/forums/showthread.php?t=2253)

Median 26th January 2006 16:59

Perfect Setup - Fedora Core 3 - saslauthd problem
 
Hi.

I read in one of Falko's posts somewhere that the Perfect Setup Fedora Core 3 is basically the same for Fedora Core 2. I have followed that and have got so far, but now I have encountered my first error.

Quote:

Now start Postfix, saslauthd, imap and pop3:

chkconfig --levels 235 sendmail off
chkconfig --levels 235 postfix on
chkconfig --levels 235 saslauthd on
works fine.
We then come to
Quote:

chkconfig imap on
and I get an error,
Code:

error reading information on service imap: No such file or directory
which is fine as Dovecot was installed instead of imap, so I change this to
Code:

chkconfig Dovecot on
and it seems to be ok.
Quote:

chkconfig imaps on
chkconfig ipop3 on
chkconfig pop3s on
all produce the same error.

>>>>> Should I replace these lines with anything or just leave them out?

Quote:

/etc/init.d/sendmail stop
/etc/init.d/postfix start
/etc/init.d/saslauthd start
/etc/init.d/xinetd restart
All seem to work ok apart from
Quote:

/etc/init.d/saslauthd start
which throws an error saying
Code:

could not read from startup_pipe
If I just type
Code:

saslauthd start
at the prompt I get an error telling me
Code:

no authentication method specified
and list of options which seems to suggest that saslauthd is there somewhere ready to go but I'm just not giving it the right information. I tried
Code:

saslauthd -a pam
which throws up the message:
Code:

saslauthd[22578] :detach_tty      : Cannot start saslauthd
saslauthd[22578] :detach_tty      : could not read from startup_pipe

Obviously I'm missing something here. Would be grateful if someone could help me out.

Thanks in advance

falko 26th January 2006 18:47

Quote:

Originally Posted by Median
>>>>> Should I replace these lines with anything or just leave them out?

Leave them out.

Quote:

Originally Posted by Median
All seem to work ok apart from which throws an error saying
Code:

could not read from startup_pipe
If I just type
Code:

saslauthd start
at the prompt I get an error telling me
Code:

no authentication method specified
and list of options which seems to suggest that saslauthd is there somewhere ready to go but I'm just not giving it the right information. I tried
Code:

saslauthd -a pam
which throws up the message:
Code:

saslauthd[22578] :detach_tty      : Cannot start saslauthd
saslauthd[22578] :detach_tty      : could not read from startup_pipe

Obviously I'm missing something here. Would be grateful if someone could help me out.

Thanks in advance

Did you do all the steps from http://www.howtoforge.com/perfect_se...dora_core_3_p4 ?

What's in /usr/lib/sasl2/smtpd.conf?
What's the output of
Code:

telnet localhost 25
(this telnet thing is also described on http://www.howtoforge.com/perfect_se...dora_core_3_p4)?

Median 26th January 2006 18:54

Quote:

Originally Posted by falko

>>>>> Yes, to the letter

Quote:

Originally Posted by falko
What's in /usr/lib/sasl2/smtpd.conf?

>>>>>
Code:

pwcheck_method: saslauthd
mech_list: plain login


Quote:

Originally Posted by falko
What's the output of
Code:

telnet localhost 25
(this telnet thing is also described on http://www.howtoforge.com/perfect_se...dora_core_3_p4)?

Code:

[root@median root]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 median.x.example.com ESMTP Postfix
ehlo localhost
250-median.x.example.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250 8BITMIME


falko 26th January 2006 21:53

Looks ok. What's in /etc/postfix/main.cf?

Median 26th January 2006 23:42

Quote:

Originally Posted by falko
Looks ok. What's in /etc/postfix/main.cf?

Do you want the whole file? Its quite large.

falko 27th January 2006 08:36

Leave out the lines beginning with #.

Median 27th January 2006 10:20

Code:

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix

mail_owner = postfix

inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
#proxy_interfaces =
#proxy_interfaces = 1.2.3.4
#mydestination = $myhostname, localhost.$mydomain, localhost
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
#        mail.$mydomain, www.$mydomain, ftp.$mydomain

#local_recipient_maps = unix:passwd.byname $alias_maps
#local_recipient_maps = proxy:unix:passwd.byname $alias_maps
#local_recipient_maps =
unknown_local_recipient_reject_code = 550

#mynetworks_style = class
#mynetworks_style = subnet
#mynetworks_style = host

#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table

#relay_domains = $mydestination

#relayhost = $mydomain
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]

#relay_recipient_maps = hash:/etc/postfix/relay_recipients

# INPUT RATE CONTROL
#in_flow_delay = 1s

#alias_maps = dbm:/etc/aliases
#alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases

#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
#alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases

#recipient_delimiter = +

#home_mailbox = Mailbox
#home_mailbox = Maildir/

#mail_spool_directory = /var/mail
#mail_spool_directory = /var/spool/mail

#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"

#mailbox_transport = lmtp:unix:/file/name
#mailbox_transport = cyrus

#fallback_transport = lmtp:unix:/file/name
#fallback_transport = cyrus
#fallback_transport =

#luser_relay = $user@other.host
#luser_relay = $local@other.host
#luser_relay = admin+$local

#header_checks = regexp:/etc/postfix/header_checks

#fast_flush_domains = $relay_domains

#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)

#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 20

debug_peer_level = 2

#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain

debugger_command =
        PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
        xxgdb $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail.postfix

newaliases_path = /usr/bin/newaliases.postfix

mailq_path = /usr/bin/mailq.postfix

setgid_group = postdrop

html_directory = /usr/share/doc/postfix-2.2.3-documentation/html

manpage_directory = /usr/share/man

sample_directory = /etc/postfix

readme_directory = /usr/share/doc/postfix-2.2.3-documentation/readme
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
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,reject_unauth_destination
inet_interfaces = all
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = 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
smtp_tls_note_starttls_offer = yes


falko 27th January 2006 10:33

Looks ok so far. Please restart Postfix and try this
Code:

telnet localhost 25
thing again.

Median 27th January 2006 11:34

Quote:

Originally Posted by falko
Looks ok so far. Please restart Postfix and try this
Code:

telnet localhost 25
thing again.

Code:

[root@median root]# postfix stop
postfix/postfix-script: stopping the Postfix mail system
[root@median root]# postfix start
postfix/postfix-script: starting the Postfix mail system
[root@median root]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 median.x.example.com ESMTP Postfix
ehlo localhost
250-median.x.example.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250 8BITMIME


falko 27th January 2006 19:33

Please run
Code:

updatedb
locate smtpd.conf

and post the output.


All times are GMT +2. The time now is 06:36.

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