LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-08-2009, 06:40 AM   #1
alvinwong
LQ Newbie
 
Registered: Jul 2009
Location: Hong Kong
Distribution: Ubuntu?
Posts: 15

Rep: Reputation: 0
Question Fedora 7 Postfix won't response? Pop3/Imap authentication failed?


I have postfix-2.4.5-2.fc7 installed on my Fedora 7.
Just because I need to use virtual users with MySQL, I followed most of the instructions from http://postfix.pentachron.net, done 3.2, 6, 7, 8(-8.2.3). I had Apache, MySql, Dovecot, Postfix installed in packages (using yum). This is /etc/postfix/main.cf:
Code:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
inet_interfaces = localhost
mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
home_mailbox = Maildir/
debug_peer_level = 2
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 = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.4.5/samples
readme_directory = /usr/share/doc/postfix-2.4.5/README_FILES

home_mailbox = Maildir/

smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth

virtual_mailbox_domains = mysql:/etc/postfix/mysql/domains.cfg
virtual_mailbox_base = /var/mail
virtual_mailbox_maps = mysql:/etc/postfix/mysql/mboxes.cfg
virtual_alias_maps = mysql:/etc/postfix/mysql/aliases.cfg
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_transport = virtual

smtpd_use_tls = yes
smtpd_tls_auth_only = no
smtpd_tls_key_file = /usr/share/ssl/s/PrivateKey.pem
smtpd_tls_cert_file = /usr/share/ssl/s/Cert.pem
smtpd_tls_CAfile = /usr/share/ssl/s/demoCA/cacert.pem 

smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
However, when I started Postfix without error, I can't receive feedback using telnet localhost 25
Code:
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
There are no response even I typed helo, ehlo, or anything else.

Pop3 and Imap also failed, with 'Authentication for alvin failed (AUTH): "a000 NO Authentication failed. "'.

May I know what happened?


Additional information:
Code:
# netstat -l -n -p|grep :25
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      23549/master
Code:
# more /var/log/mail/mail.log
/var/log/mail/mail.log: 沒有此一檔案或目錄
Means "File or directory not existing"
 
Old 07-08-2009, 01:14 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
You do know that fedora 7 is unsupported and has had NO SECURITY fixes or updates

please you yourself and the REST of the world a favour and install a SUPPORTED os before your system becomes a ZOMBIE
 
Old 07-08-2009, 10:47 PM   #3
alvinwong
LQ Newbie
 
Registered: Jul 2009
Location: Hong Kong
Distribution: Ubuntu?
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by John VV View Post
You do know that fedora 7 is unsupported and has had NO SECURITY fixes or updates

please you yourself and the REST of the world a favour and install a SUPPORTED os before your system becomes a ZOMBIE
So, as you say, what should I do? Should I update it with fc11?

However I am accessing it with remote control...

But first of all, can anyone help me with the problem?
 
Old 07-08-2009, 11:02 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You log is probably /var/log/maillog.

if it isn't, what is in /var/log?

Logs should be the starting point for you.

A tip for setting up postfix. Get a basic server working, then add bits one at time (mysql for example). unless the howto suits you perfectly, you'll find it more difficult to try and do it all at once.
 
Old 07-09-2009, 02:51 AM   #5
alvinwong
LQ Newbie
 
Registered: Jul 2009
Location: Hong Kong
Distribution: Ubuntu?
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by billymayday View Post
You log is probably /var/log/maillog.

if it isn't, what is in /var/log?

Logs should be the starting point for you.

A tip for setting up postfix. Get a basic server working, then add bits one at time (mysql for example). unless the howto suits you perfectly, you'll find it more difficult to try and do it all at once.
In fact, before I need MySql with postfix, I am using MySql, apache, php, dovecot, sendmail and vsftpd correctly. However, as I need to make a mail server with a few domains and users, I need to use virtual users. I'd rather use MySql because I can easily add or remove users using phpMyAdmin.

If anyone have other idea to achieve similar methods, I would also like to listen... read.
 
Old 07-09-2009, 02:34 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
install CentOS 5.3 for a mail server
and do not use a unsupported version of fedora

unless you like running a zombie box.

the errors also could be SELinux rules being misconfiguration
what dose SELinux TroubleShooter say??

if your mail log dose not exist , then TURN ON " sendmail" service
and look at all of the services to see if one of the needed services is off.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow POP3 response / authentication ? lars-petter Slackware 1 10-09-2006 04:44 PM
Postfix / pop3, imap and smtp Sapient Linux - Networking 2 03-01-2006 05:10 AM
Postfix Cyrus IMAP/POP3 configuration on FC4 tomashelgi Fedora 0 08-31-2005 05:05 PM
SMTP/ Postfix / IMAP-POP3 / Courier ?? vladimir-dk Linux - Software 3 04-09-2004 04:31 AM
Postfix Configuration for POP3 and IMAP??? Graanco Linux - Newbie 4 02-18-2003 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration