PDA

View Full Version : Help understanding how mail server should be setup


micko_escalade
28th January 2006, 11:26
Hi all!

I spent couple of hours reading thru whole forum trying to figure out what are steps to get it running, but no joy,
I have VPS (virtual private server) with Fedora 4 installed on it, I installed webmin, apache2, mysql, php and they're working fine,
now Dovecot IMAP/POP3 Server is giving me headache,
can someone give me a list of required modules to get mail working.

Thanks!

falko
28th January 2006, 13:30
Have a look at this tutorial: http://www.howtoforge.com/perfect_setup_fedora_core_4

In the tutorial I install the package imap; leave it out as you have installed Dovecot. You should then add these steps after the Postfix configuration because Dovecot uses Maildir:

postconf -e 'home_mailbox = Maildir/'
postconf -e 'mailbox_command ='
/etc/init.d/postfix restart

If you want to install ISPConfig afterwards, you can create your mailboxes with the ISPConfig web interface; if you want to create your mailboxes manually, have a look here: http://www.howtoforge.com/forums/showthread.php?t=2

micko_escalade
29th January 2006, 04:30
Thanks for the reply falko!

so in putty I should run this code bellow ?
postconf -e 'home_mailbox = Maildir/'
postconf -e 'mailbox_command ='
/etc/init.d/postfix restart

and since my VPS has only 128MB of ram I think I shouldn't install ISPConfig,
or I can install it but not run on a boot ?

falko
29th January 2006, 08:31
so in putty I should run this code bellow ?
postconf -e 'home_mailbox = Maildir/'
postconf -e 'mailbox_command ='
/etc/init.d/postfix restart
Yes.

and since my VPS has only 128MB of ram I think I shouldn't install ISPConfig,
or I can install it but not run on a boot ?
It depends on how much RAM is eaten up by your other applications.
You can install it and then remove the system startup links so that it doesn't get started at boot time.

micko_escalade
29th January 2006, 08:47
I run the code and everrything went ok, with no errors,

but when I send test email from yahoo.com to my VPS it newer gets there,
outlook shows this error screenshot (http://img93.imageshack.us/img93/4109/capture90ht.jpg) when I try to send email from outlook
www.dnsstuff.com gives this error link (http://www.dnsstuff.com/tools/mail.ch?domain=user%40mail.com)
also www.dnsreport.com at the buttom gives gives error for MX record link (http://www.dnsreport.com/tools/dnsreport.ch?domain=mail.com)

I have 3 virtual domains, maybe that's causing problems?

falko
29th January 2006, 09:35
Is 207.210.228.31 your server's IP address, or does it belong to another server?
Is your server connected directly to the internet, or is it behind a router?

micko_escalade
29th January 2006, 09:40
That ip is my VPS (virtual private server) ip, which is located somewhere in the US, and from what I've read looks like the problem is with Reverse DNS not set up for that ip.

falko
29th January 2006, 18:38
and from what I've read looks like the problem is with Reverse DNS not set up for that ip.
That is likely. You can ask your ISP/hoster to set up a reverse record for that IP address.

micko_escalade
29th January 2006, 19:23
Ok, I asked my provider and they set reverse dns, but still can't get it to work,
this is error log from Webmin: System > System Logs > /var/log/maillog > View Logfile
Jan 29 10:11:13 m5-fedora4-04 sendmail[1652]: daemon MTA: problem creating SMTP socket
Jan 29 10:11:18 m5-fedora4-04 sendmail[1652]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jan 29 10:11:18 m5-fedora4-04 sendmail[1652]: daemon MTA: problem creating SMTP socket
Jan 29 10:11:23 m5-fedora4-04 sendmail[1652]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jan 29 10:11:23 m5-fedora4-04 sendmail[1652]: daemon MTA: problem creating SMTP socket
Jan 29 10:11:28 m5-fedora4-04 sendmail[1652]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jan 29 10:11:28 m5-fedora4-04 sendmail[1652]: daemon MTA: problem creating SMTP socket
Jan 29 10:11:33 m5-fedora4-04 sendmail[1652]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jan 29 10:11:33 m5-fedora4-04 sendmail[1652]: daemon MTA: problem creating SMTP socket
Jan 29 10:11:38 m5-fedora4-04 sendmail[1652]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jan 29 10:11:38 m5-fedora4-04 sendmail[1652]: daemon MTA: problem creating SMTP socket
Jan 29 10:11:43 m5-fedora4-04 sendmail[1652]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jan 29 10:11:43 m5-fedora4-04 sendmail[1652]: daemon MTA: problem creating SMTP socket
Jan 29 10:11:48 m5-fedora4-04 sendmail[1652]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jan 29 10:11:48 m5-fedora4-04 sendmail[1652]: daemon MTA: problem creating SMTP socket
Jan 29 10:11:53 m5-fedora4-04 sendmail[1652]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jan 29 10:11:53 m5-fedora4-04 sendmail[1652]: daemon MTA: problem creating SMTP socket
Jan 29 10:11:53 m5-fedora4-04 sendmail[1652]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: server SMTP socket wedged: exiting
and www.dnsreport.com (http://www.dnsreport.com/tools/dnsreport.ch?domain=garasevic.com)
still says Mail Fail ERROR: I could not complete a connection to any of your mailservers!

falko
29th January 2006, 21:24
Ok, I asked my provider and they set reverse dns, but still can't get it to work,
It might take up to 72 hours until the changes propagate.


this is error log from Webmin: System > System Logs > /var/log/maillog > View Logfile
Jan 29 10:11:13 m5-fedora4-04 sendmail[1652]: daemon MTA: problem creating SMTP socket
Jan 29 10:11:18 m5-fedora4-04 sendmail[1652]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jan 29 10:11:18 m5-fedora4-04 sendmail[1652]: daemon MTA: problem creating SMTP socket
Jan 29 10:11:23 m5-fedora4-04 sendmail[1652]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jan 29 10:11:23 m5-fedora4-04 sendmail[1652]: daemon MTA: problem creating SMTP socket
Jan 29 10:11:28 m5-fedora4-04 sendmail[1652]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jan 29 10:11:28 m5-fedora4-04 sendmail[1652]: daemon MTA: problem creating SMTP socket
Jan 29 10:11:33 m5-fedora4-04 sendmail[1652]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jan 29 10:11:33 m5-fedora4-04 sendmail[1652]: daemon MTA: problem creating SMTP socket
Jan 29 10:11:38 m5-fedora4-04 sendmail[1652]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jan 29 10:11:38 m5-fedora4-04 sendmail[1652]: daemon MTA: problem creating SMTP socket
Jan 29 10:11:43 m5-fedora4-04 sendmail[1652]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jan 29 10:11:43 m5-fedora4-04 sendmail[1652]: daemon MTA: problem creating SMTP socket
Jan 29 10:11:48 m5-fedora4-04 sendmail[1652]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jan 29 10:11:48 m5-fedora4-04 sendmail[1652]: daemon MTA: problem creating SMTP socket
Jan 29 10:11:53 m5-fedora4-04 sendmail[1652]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Jan 29 10:11:53 m5-fedora4-04 sendmail[1652]: daemon MTA: problem creating SMTP socket
Jan 29 10:11:53 m5-fedora4-04 sendmail[1652]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: server SMTP socket wedged: exiting

You seem to have Sendmail installed. The things I posted above are for Postfix... :confused: Now which Mail server is really installed on your system?

Also, please post the output of netstat -tap

micko_escalade
29th January 2006, 21:24
Looks like I had sendmail and postfix both running at boot,
so I stopped sendmail and now I get those errors
Jan 29 12:20:40 m5-fedora4-04 postfix/master[1625]: warning: /usr/libexec/postfix/qmgr: bad command startup -- throttling
Jan 29 12:20:54 m5-fedora4-04 postfix/smtpd[1885]: fatal: match_list_parse: open file /etc/postfix/local-host-names: No such file or directory
Jan 29 12:20:55 m5-fedora4-04 postfix/master[1625]: warning: process /usr/libexec/postfix/smtpd pid 1885 exit status 1
Jan 29 12:20:55 m5-fedora4-04 postfix/master[1625]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Jan 29 12:21:40 m5-fedora4-04 postfix/pickup[1886]: fatal: match_list_parse: open file /etc/postfix/local-host-names: No such file or directory
Jan 29 12:21:40 m5-fedora4-04 postfix/qmgr[1887]: fatal: match_list_parse: open file /etc/postfix/local-host-names: No such file or directory
Jan 29 12:21:41 m5-fedora4-04 postfix/master[1625]: warning: process /usr/libexec/postfix/pickup pid 1886 exit status 1
Jan 29 12:21:41 m5-fedora4-04 postfix/master[1625]: warning: /usr/libexec/postfix/pickup: bad command startup -- throttling
Jan 29 12:21:41 m5-fedora4-04 postfix/master[1625]: warning: process /usr/libexec/postfix/qmgr pid 1887 exit status 1
Jan 29 12:21:41 m5-fedora4-04 postfix/master[1625]: warning: /usr/libexec/postfix/qmgr: bad command startup -- throttling
Jan 29 12:21:55 m5-fedora4-04 postfix/smtpd[1888]: fatal: match_list_parse: open file /etc/postfix/local-host-names: No such file or directory
Jan 29 12:21:56 m5-fedora4-04 postfix/master[1625]: warning: process /usr/libexec/postfix/smtpd pid 1888 exit status 1
Jan 29 12:21:56 m5-fedora4-04 postfix/master[1625]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Jan 29 12:22:41 m5-fedora4-04 postfix/pickup[1892]: fatal: match_list_parse: open file /etc/postfix/local-host-names: No such file or directory
Jan 29 12:22:41 m5-fedora4-04 postfix/qmgr[1893]: fatal: match_list_parse: open file /etc/postfix/local-host-names: No such file or directory
Jan 29 12:22:42 m5-fedora4-04 postfix/master[1625]: warning: process /usr/libexec/postfix/pickup pid 1892 exit status 1
Jan 29 12:22:42 m5-fedora4-04 postfix/master[1625]: warning: /usr/libexec/postfix/pickup: bad comm

micko_escalade
29th January 2006, 21:36
It might take up to 72 hours until the changes propagate.


You seem to have Sendmail installed. The things I posted above are for Postfix... :confused: Now which Mail server is really installed on your system?


Sorry about that you were faster :) now I have only postfix, sendmail is not running anymore,

here's the netstat -tap screenshot (http://img490.imageshack.us/img490/8315/netstat1ae.jpg)

falko
29th January 2006, 21:51
First create /etc/postfix/local-host-names:
touch /etc/postfix/local-host-names

Then post /etc/postfix/main.cf here.

micko_escalade
29th January 2006, 21:58
Ok, local-host-names is created

here's the attached main.cf

micko_escalade
29th January 2006, 22:07
Here's my error log again if it can help solve my problem,
Jan 29 13:01:41 m5-fedora4-04 pop3-login: Login: user1 [67.171.7.xxx]
Jan 29 13:02:35 m5-fedora4-04 postfix/smtpd[2198]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory
Jan 29 13:02:36 m5-fedora4-04 postfix/master[1625]: warning: process /usr/libexec/postfix/smtpd pid 2198 exit status 1
Jan 29 13:02:36 m5-fedora4-04 postfix/master[1625]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Jan 29 13:03:36 m5-fedora4-04 postfix/smtpd[2214]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory
Jan 29 13:03:37 m5-fedora4-04 postfix/master[1625]: warning: process /usr/libexec/postfix/smtpd pid 2214 exit status 1
Jan 29 13:03:37 m5-fedora4-04 postfix/master[1625]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Jan 29 13:04:37 m5-fedora4-04 postfix/smtpd[2239]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory
Jan 29 13:04:38 m5-fedora4-04 postfix/master[1625]: warning: process /usr/libexec/postfix/smtpd pid 2239 exit status 1
Jan 29 13:04:38 m5-fedora4-04 postfix/master[1625]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Jan 29 13:05:38 m5-fedora4-04 postfix/smtpd[2240]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory
Jan 29 13:05:39 m5-fedora4-04 postfix/master[1625]: warning: process /usr/libexec/postfix/smtpd pid 2240 exit

falko
29th January 2006, 22:10
Here's my error log again if it can help solve my problem,
Jan 29 13:01:41 m5-fedora4-04 pop3-login: Login: user1 [67.171.7.xxx]
Jan 29 13:02:35 m5-fedora4-04 postfix/smtpd[2198]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory

Does /etc/postfix/virtusertable exist? If so, run postmap /etc/postfix/virtusertable and restart Postfix.

Can you post your main.cf directly to this forum instead of as an attachment? This makes it easier for everyone to read it.:)

micko_escalade
29th January 2006, 22:28
Can you post your main.cf directly to this forum instead of as an attachment? This makes it easier for everyone to read it.
I tried that first time but then it gave error that it is too long
The text that you have entered is too long (26463 characters). Please shorten it to 10000 characters long.

Does /etc/postfix/virtusertable exist?
No, it doesn't exist, this is what's in postfix folder screenshot (http://img353.imageshack.us/img353/5200/postfix9ye.jpg)

but then like 10 minutes ago I rebooted VPS, and those errors are gone,
Jan 29 13:04:38 m5-fedora4-04 postfix/master[1625]: warning: process /usr/libexec/postfix/smtpd pid 2239 exit status 1
Jan 29 13:04:38 m5-fedora4-04 postfix/master[1625]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Jan 29 13:05:38 m5-fedora4-04 postfix/smtpd[2240]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory
Jan 29 13:05:39 m5-fedora4-04 postfix/master[1625]: warning: process /usr/libexec/postfix/smtpd pid 2240 exit status 1
Jan 29 13:05:39 m5-fedora4-04 postfix/master[1625]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Jan 29 13:06:39 m5-fedora4-04 postfix/smtpd[2249]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory
Jan 29 13:06:40 m5-fedora4-04 postfix/master[1625]: warning: process /usr/libexec/postfix/smtpd pid 2249 exit status 1
Jan 29 13:06:40 m5-fedora4-04 postfix/master[1625]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Jan 29 13:07:40 m5-fedora4-04 postfix/smtpd[2250]: fatal: open database /etc/postfix/virtusertable.db: No such file or directory
Jan 29 13:07:41 m5-fedora4-04 postfix/master[1625]: warning: process /usr/libexec/postfix/smtpd pid 2250 exit status 1
Jan 29 13:07:41 m5-fedora4-04 postfix/master[1625]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Jan 29 13:08:30 m5-fedora4-04 postfix/postfix-script: stopping the Postfix mail system
Jan 29 13:08:30 m5-fedora4-04 postfix/master[1625]: terminating on signal 15
Jan 29 13:08:31 m5-fedora4-04 dovecot: Killed with signal 15
Jan 29 13:14:27 m5-fedora4-04 dovecot: Dovecot starting up
Jan 29 13:14:29 m5-fedora4-04 postfix/postfix-script: starting the Postfix mail system
Jan 29 13:14:29 m5-fedora4-04 postfix/master[1625]: daemon started -- version 2.2.2, configuration /etc/postfix
Jan 29 13:23:58 m5-fedora4-04 pop3-login: Login: user1 [67.171.7.xxx]
Jan 29 13:24:48 m5-fedora4-04 pop3-login: Login: user1 [67.171.7.xxx]
Jan 29 13:26:00 m5-fedora4-04 last message repeated 2 times

btw, falko I really appreciate your help!

micko_escalade
30th January 2006, 04:32
Some additonal info,

I followed instruction Testing Postfix
here (http://www.freespamfilter.org/FC4.html#_Toc110999165)
when I try to telnet from windows command prompt to my vps ip
telnet 207.210.228.XX 25
I get no responde, but when I SSH to my vps using putty and use
telnet localhost 25
I get welcome message
220 m5-fedora4-04.myxen.com ESMTP Postfix
and I was able to send test email to yahoo account as instructed in above link

till
30th January 2006, 08:16
If your vps is behind a router, you will have to forward port 25 to your vps.

Otherwise i guess your provider blocks connections on port 25 or your windows or linux firewall blocks the connections.

falko
30th January 2006, 08:56
I tried that first time but then it gave error that it is too long
Leave out all the comments in the file, then it should fit without problems.

I followed instruction Testing Postfix
here
when I try to telnet from windows command prompt to my vps ip
Code:

telnet 207.210.228.XX 25

I get no responde,

In the netstat output I saw that Postfix is listening only on localhost, so I guess you haven't set inet_interfaces to all in /etc/postfix/main.cf (that's why I asked for it). Please set
inet_interfaces = all in /etc/postfix/main.cf and restart Postfix.


BTW, when I ask you for some output of some command, please post it as plain text here, not as screenshot. This makes it easier for us to see what is wrong.

micko_escalade
30th January 2006, 14:38
Ok, here's the code, most comments are left out



#
#soft_bounce = no

# LOCAL PATHNAME INFORMATION

#
queue_directory = /var/spool/postfix

# The command_directory parameter specifies the location of all
# postXXX commands.
#
command_directory = /usr/sbin

# The daemon_directory parameter specifies the location of all Postfix
# daemon programs (i.e. programs listed in the master.cf file). This
# directory must be owned by root.
#
daemon_directory = /usr/libexec/postfix

# QUEUE AND PROCESS OWNERSHIP

#
mail_owner = postfix


#default_privs = nobody

# INTERNET HOST AND DOMAIN NAMES

#
#myhostname = host.domain.tld
#myhostname = virtual.domain.tld


#mydomain = domain.tld

# SENDING MAIL

#myorigin = $myhostname
#myorigin = $mydomain

# RECEIVING MAIL


#
inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
inet_interfaces = localhost

#proxy_interfaces =
#proxy_interfaces = 1.2.3.4


mydestination = /etc/postfix/local-host-names
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
# mail.$mydomain, www.$mydomain, ftp.$mydomain

# REJECTING MAIL FOR UNKNOWN LOCAL USERS
#

#
#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

# TRUST AND RELAY CONTROL


#
#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


#
# NOTE: Postfix will not automatically forward mail for domains that
# list this system as their primary or backup MX host. See the
# permit_mx_backup restriction description in postconf(5).
#
#relay_domains = $mydestination

# INTERNET OR INTRANET


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

# REJECTING UNKNOWN RELAY USERS
ser@domain.tld address.
#
#relay_recipient_maps = hash:/etc/postfix/relay_recipients

# INPUT RATE CONTROL
#

#in_flow_delay = 1s

# ADDRESS REWRITING
#


# ADDRESS REDIRECTION (VIRTUAL DOMAIN)
#


# "USER HAS MOVED" BOUNCE MESSAGES
#
# See the discussion in the ADDRESS_REWRITING_README document.

# TRANSPORT MAP
#
# See the discussion in the ADDRESS_REWRITING_README document.

# ALIAS DATABASE

#
# It will take a minute or so before changes become visible. Use
# "postfix reload" to eliminate the delay.
#
#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

# ADDRESS EXTENSIONS (e.g., user+foo)

#
#recipient_delimiter = +

# DELIVERY TO MAILBOX
#

#
#home_mailbox = Mailbox
#home_mailbox = Maildir/

# The mail_spool_directory parameter specifies the directory where
# UNIX-style mailboxes are kept. The default setting depends on the
# system type.
#
#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 works only for the default Postfix local delivery agent.
#

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

# JUNK MAIL CONTROLS
#

#
#header_checks = regexp:/etc/postfix/header_checks

# FAST ETRN SERVICE

#fast_flush_domains = $relay_domains

# SHOW SOFTWARE VERSION OR NOT

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

# PARALLEL DELIVERY TO THE SAME DESTINATION

#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 20

# DEBUGGING CONTROL
#
# The debug_peer_level parameter specifies the increment in verbose
# logging level when an SMTP client or server host name or address
# matches a pattern in the debug_peer_list parameter.
#
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


#
# debugger_command =
# PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
# echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
# >$config_directory/$process_name.$process_id.log & sleep 5
#
#
# debugger_command =
# PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen
# -dmS $process_name gdb $daemon_directory/$process_name
# $process_id & sleep 1

# INSTALL-TIME CONFIGURATION INFORMATION
#
# The following parameters are used when installing a new Postfix version.
#
# sendmail_path: The full pathname of the Postfix sendmail command.
# This is the Sendmail-compatible mail posting interface.
#
sendmail_path = /usr/sbin/sendmail.postfix

# newaliases_path: The full pathname of the Postfix newaliases command.
# This is the Sendmail-compatible command to build alias databases.
#
newaliases_path = /usr/bin/newaliases.postfix

# mailq_path: The full pathname of the Postfix mailq command. This
# is the Sendmail-compatible mail queue listing command.
#
mailq_path = /usr/bin/mailq.postfix

# setgid_group: The group for mail submission and queue management
# commands. This must be a group name with a numerical group ID that
# is not shared with other accounts, not even with the Postfix account.
#
setgid_group = postdrop

# html_directory: The location of the Postfix HTML documentation.
#
html_directory = no

# manpage_directory: The location of the Postfix on-line manual pages.
#
manpage_directory = /usr/share/man

# sample_directory: The location of the Postfix sample configuration files.
# This parameter is obsolete as of Postfix 2.1.
#
sample_directory = /usr/share/doc/postfix-2.2.2/samples

# readme_directory: The location of the Postfix README files.
#
readme_directory = /usr/share/doc/postfix-2.2.2/README_FILES
home_mailbox = Maildir/
mailbox_command =
virtual_maps = hash:/etc/postfix/virtusertable

micko_escalade
30th January 2006, 15:01
As far as I know there's no firewall,
when I use tihis small app (angry ip) that scans ip for open ports and looks like port 25 is open screenshot (http://img81.imageshack.us/img81/4206/angry1yc.jpg)
but when I use this site to scan for open port it says no service running on port 25 link (http://www.t1shopper.com/tools/scan.php4?scan_host=207.210.228.31&portscansubmit=%3CWorking%3E&scan_portnumber=25)

here's the output of netstat -tap , most of the stuff gets cut off when I copy/paste from putty

[root@m5-fedora4-04 ~]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address Stat e PID/Program name
tcp 0 0 *:imaps *:* LIST EN 1571/dovecot
tcp 0 0 *:pop3s *:* LIST EN 1571/dovecot
tcp 0 0 *:mysql *:* LIST EN 1540/mysqld
tcp 0 0 *:pop3 *:* LIST EN 1571/dovecot
tcp 0 0 *:imap *:* LIST EN 1571/dovecot
tcp 0 0 *:10000 *:* LIST EN 1675/perl
tcp 0 0 *:http *:* LIST EN 1652/httpd
tcp 0 0 *:ftp *:* LIST EN 1642/proftpd: (acce
tcp 0 0 *:ssh *:* LIST EN 1448/sshd
tcp 0 0 localhost.localdomain:smtp *:* LIST EN 1633/master
tcp 0 0 m5-fedora4-04.myxen.com:ssh mail1.rainierindustri:19688 ESTA BLISHED 1876/sshd: root@not
tcp 0 0 m5-fedora4-04.myxen.co:pop3 c-67-171-7-xxx.hsd1.wa:1706 TIME _WAIT -
tcp 0 1040 m5-fedora4-04.myxen.com:ssh mail1.rainierindustri:19488 ESTA BLISHED 1829/0
tcp 0 0 m5-fedora4-04.myxen.com:ssh c-67-171-7-xxx.hsd1.wa:3389 ESTA BLISHED 1701/sshd: root@not
[root@m5-fedora4-04 ~]#

till
30th January 2006, 15:24
Is the workstation where you run angry IP in the same local network then your server?

micko_escalade
30th January 2006, 15:29
Angry IP is on my personal computer, VPS is somewhere is the U.S.A, so VPS/server its remote machine

falko
30th January 2006, 19:00
Ok, here's the code, most comments are left out




inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
inet_interfaces = localhost



You set inet_interfaces twice in /etc/postfix/main.cf, the last one overriding the first one. Please remove inet_interfaces = localhost and restart Postfix!

micko_escalade
31st January 2006, 03:42
It might take up to 72 hours until the changes propagate.
looks MX recordes propagated now,
when I telnet to my vps (telnet 207.210.228.XX 25) I get welcome message
220 m5-fedora4-04.myxen.com ESMTP Postfix

here's the error from outlook express when I try to send email to yahoo

The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'me@yahoo.com'. Subject 'test66', Account: 'mydomain.com', Server: 'mydomain.com', Protocol: SMTP, Server Response: '554 <me@yahoo.com>: Relay access denied', Port: 25, Secure(SSL): No, Server Error: 554, Error Number: 0x800CCC79


looks like I set something wrong in local-host-names and virtusertable

bellow is what's in my local-host-names
localhost
mydomain.com
localhost.mydomain.com

bellow is what's in my virtusertable
me@mydomain.com sample_user

till
31st January 2006, 11:12
The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'me@yahoo.com'. Subject 'test66', Account: 'mydomain.com', Server: 'mydomain.com', Protocol: SMTP, Server Response: '554 <me@yahoo.com>: Relay access denied', Port: 25, Secure(SSL): No, Server Error: 554, Error Number: 0x800CCC79

You must authenticate yourself with smtp-auth when you send emails to domains that are not on your server (yahoo.com).

Please check "Server needs authentication" in your outlook express smtp settings.

micko_escalade
31st January 2006, 19:05
My server requiers authentication is checked in OE, same erorr with checked and unchecked

And I don't understand why when I send email to mydomain.com it gets bounced

-----------------------------------------------------------------------
This is the Postfix program at host m5-fedora4-04.myxen.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The Postfix program

<sample_user@m5-fedora4-04.myxen.com> (expanded from
<me@mydomain.com>):
Host or domain name not found. Name service error for
name=m5-fedora4-04.myxen.com type=A: Host not found
------------------------------------------------------------------------------------------

but when I add m5-fedora4-04.myxen.com to local-host-names I can receive it in OE,

mydomain.com is already in local-host-names why can't I receive it??

myxen.com is my host domain and ip is differnet then my VPS's ip

[root@m5-fedora4-04 ~]# hostname -f
m5-fedora4-04.myxen.com


[root@m5-fedora4-04 ~]# hostname
m5-fedora4-04

micko_escalade
1st February 2006, 05:58
I've installed SquirrelMail (web based email) and I was able to send test email to yahoo.com bellow are headers from that email.

---------------------------------------------------------------------------------------
X-Apparently-To:myusername@yahoo.com via 209.191.68.172; Tue, 31 Jan 2006 19:57:05 -0800
X-Originating-IP: [207.210.228.XX]
Authentication-Results: mta134.mail.mud.yahoo.com
from=m5-fedora4-04.myxen.com; domainkeys=neutral (no sig)
Received: from 207.210.228.XX (EHLO m5-fedora4-04.myxen.com) (207.210.228.XX)
by mta134.mail.mud.yahoo.com with SMTP; Tue, 31 Jan 2006 19:57:05 -0800
Received: from m5-fedora4-04.myxen.com (localhost.localdomain [127.0.0.1])
by m5-fedora4-04.myxen.com (Postfix) with ESMTP id 47BF9DF6983
for <myusername@yahoo.com>; Tue, 31 Jan 2006 19:57:24 -0800 (PST)
Received: (from apache@localhost)
by m5-fedora4-04.myxen.com (8.13.4/8.13.4/Submit) id k113vOep001808;
Tue, 31 Jan 2006 19:57:24 -0800
From: sample_user@m5-fedora4-04.myxen.com
X-Authentication-Warning: m5-fedora4-04.myxen.com: apache set sender to marinko@localhost using -f
Received: from 67.171.7.xxx
(SquirrelMail authenticated user sample_user)
by www.mydomain.com with HTTP;
Tue, 31 Jan 2006 19:57:24 -0800 (PST)
Date: Tue, 31 Jan 2006 19:57:24 -0800 (PST)
Subject: test at 7:57
To: myusername@yahoo.com
User-Agent: SquirrelMail/1.4.6 [CVS]-0.cvs20050812.3.fc5
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal
------------------------------------------------------------------------------------------------

falko
1st February 2006, 12:33
The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'me@yahoo.com'. Subject 'test66', Account: 'mydomain.com', Server: 'mydomain.com', Protocol: SMTP, Server Response: '554 <me@yahoo.com>: Relay access denied', Port: 25, Secure(SSL): No, Server Error: 554, Error Number: 0x800CCC79


This has nothing to do with local-host-names and virtusertable. You must check "Server requires authentication." in Outlook. Have a look here: http://mail.cs.uiuc.edu/relay/outlook-config.html

The Postfix program

<sample_user@m5-fedora4-04.myxen.com> (expanded from
<me@mydomain.com>):
Host or domain name not found. Name service error for
name=m5-fedora4-04.myxen.com type=A: Host not found

You must either create na A record for m5-fedora4-04.myxen.com (this is the solution I prefer), or you put m5-fedora4-04.myxen.com into /etc/hosts.

micko_escalade
2nd February 2006, 07:03
This has nothing to do with local-host-names and virtusertable. You must check "Server requires authentication." in Outlook. Have a look here: http://mail.cs.uiuc.edu/relay/outlook-config.html

I tried that, but no luck I was still getting same error
Jan 31 17:37:46 m5-fedora4-04 postfix/smtpd[1713]: connect from c-67-171-7-xxx.hsd1.wa.comcast.net[67.171.7.xxx]
Jan 31 17:37:46 m5-fedora4-04 postfix/smtpd[1713]: NOQUEUE: reject: RCPT from c-67-171-7-xxx.hsd1.wa.comcast.net[67.171.7.xxx]: 554 <myusername@yahoo.com>: Relay access denied; from=<me@mydomain.com> to=<myusername@yahoo.com> proto=ESMTP helo=<mickoescalade>
Jan 31 17:37:46 m5-fedora4-04 postfix/smtpd[1713]: disconnect from c-67-171-7-xxx.hsd1.wa.comcast.net[67.171.7.xxx]

You must either create na A record for m5-fedora4-04.myxen.com (this is the solution I prefer), or you put m5-fedora4-04.myxen.com into /etc/hosts.
m5-fedora4-04.myxen.com was already in /etc/hosts
then I added m5-fedora4-04.myxen.com to /etc/postfix/local-host-names
then I was able to receive email's.
127.0.0.1 localhost.localdomain localhost
207.210.228.xx m5-fedora4-04.myxen.com m5-fedora4-04

but I still couldn't send email
then I added those lines to main.cf
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated,reject_unauth_destinatio n
smtpd_sasl_auth_enable=yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients=yes
in /etc/postfix directory did
mkdir sasl
chown root:root sasl/
chmod 755 sasl/
cd sasl

then created smtpd.conf with this in it
pwcheck_method: saslauthd
mech_list: digest-md5 cram-md5 plain login
log_level: 3
then run this
chmod 644 smtpd.conf
chown root:root smtpd.conf

finally that error went away, but then re-login box keeps popping up and still can't send
http://img503.imageshack.us/img503/6366/oeauth1ya.jpg

I know I have right username and password because I use same to send/receive in SquirrelMail

here's the /var/log/maillog
Feb 1 15:32:15 m5-fedora4-04 postfix/smtpd[1690]: connect from c-67-171-7-xxx.hsd1.wa.comcast.net[67.171.7.xxx]
Feb 1 15:32:16 m5-fedora4-04 postfix/smtpd[1690]: warning: c-67-171-7-xxx.hsd1.wa.comcast.net[67.171.7.xxx]: SASL LOGIN authentication failed
Feb 1 15:32:16 m5-fedora4-04 postfix/smtpd[1690]: disconnect from c-67-171-7-xxx.hsd1.wa.comcast.net[67.171.7.xxx]

falko
2nd February 2006, 09:23
then created smtpd.conf with this in it
pwcheck_method: saslauthd
mech_list: digest-md5 cram-md5 plain login
log_level: 3

Can you remove digest-md5 cram-md5 from smtpd.conf and restart Postfix?
Please post the output of telnet localhost 25 and ehlo localhost afterwards.

finally that error went away, but then re-login box keeps popping up and still can't send
http://img503.imageshack.us/img503/6366/oeauth1ya.jpg

I know I have right username and password because I use same to send/receive in SquirrelMail

Could you maybe post screenshots of your whole Outlook configuration for that account?

micko_escalade
2nd February 2006, 15:24
here are the screenshots
http://img135.imageshack.us/img135/4152/oe15uy.jpg
http://img433.imageshack.us/img433/8557/oe20xh.jpg
http://img433.imageshack.us/img433/4640/oe31dw.jpg


[root@m5-fedora4-04 ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 m5-fedora4-04.myxen.com ESMTP Postfix
ehlo localhost
250-m5-fedora4-04.myxen.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5 PLAIN LOGIN
250-AUTH=DIGEST-MD5 CRAM-MD5 PLAIN LOGIN
250 8BITMIME






I did removed igest-md5 cram-md5 and left just
pwcheck_method: saslauthd
mech_list: plain login
log_level: 3

but no luck

falko
2nd February 2006, 18:47
here are the screenshots
http://img135.imageshack.us/img135/4152/oe15uy.jpg
http://img433.imageshack.us/img433/8557/oe20xh.jpg
http://img433.imageshack.us/img433/4640/oe31dw.jpg
Your Outlook configuration seems to be ok. :)


I did removed igest-md5 cram-md5 and left just
pwcheck_method: saslauthd
mech_list: plain login
log_level: 3

but no luck
Can you do this telnet localhost 25 thing again (now that you've removed digest-md5 and cram-md5) and post the output?

Is saslauthd running? Please post the output of ps aux

micko_escalade
2nd February 2006, 19:57
[root@m5-fedora4-04 ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 m5-fedora4-04.myxen.com ESMTP Postfix
ehlo localhost
250-m5-fedora4-04.myxen.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5 PLAIN LOGIN
250-AUTH=DIGEST-MD5 CRAM-MD5 PLAIN LOGIN
250 8BITMIME




[root@m5-fedora4-04 ~]# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.4 1744 584 ? S 07:27 0:04 init [3]
root 2 0.0 0.0 0 0 ? S 07:27 0:00 [migration/0]
root 3 0.0 0.0 0 0 ? SN 07:27 0:00 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S< 07:27 0:00 [events/0]
root 5 0.0 0.0 0 0 ? S< 07:27 0:00 [khelper]
root 6 0.0 0.0 0 0 ? S< 07:27 0:00 [kthread]
root 7 0.0 0.0 0 0 ? S< 07:27 0:00 [xenwatch]
root 8 0.0 0.0 0 0 ? S< 07:27 0:00 [xenbus]
root 13 0.0 0.0 0 0 ? S< 07:27 0:00 [kblockd/0]
root 33 0.0 0.0 0 0 ? S 07:27 0:00 [pdflush]
root 34 0.0 0.0 0 0 ? S 07:27 0:00 [pdflush]
root 36 0.0 0.0 0 0 ? S< 07:27 0:00 [aio/0]
root 35 0.0 0.0 0 0 ? S 07:27 0:00 [kswapd0]
root 37 0.0 0.0 0 0 ? S< 07:27 0:00 [xfslogd/0]
root 38 0.0 0.0 0 0 ? S< 07:27 0:00 [xfsdatad/0]
root 39 0.0 0.0 0 0 ? S 07:27 0:00 [xfsbufd]
root 578 0.0 0.0 0 0 ? S 07:27 0:00 [xfssyncd]
root 1437 0.0 0.4 1608 652 ? Ss 07:27 0:00 syslogd -m 0
root 1439 0.0 0.3 1560 504 ? Ss 07:27 0:00 klogd -x
root 1448 0.0 1.3 4400 1748 ? Ss 07:27 0:00 /usr/sbin/sshd
root 1510 0.0 0.8 2300 1120 ? S 07:27 0:00 /bin/sh /usr/bi
mysql 1540 0.0 10.6 95460 14340 ? Sl 07:27 0:00 /usr/libexec/my
root 1571 0.0 0.7 3896 1052 ? Ss 07:27 0:00 /usr/sbin/dovec
root 1600 0.0 1.1 6312 1484 ? S 07:27 0:00 dovecot-auth
dovecot 1601 0.0 1.0 3900 1476 ? S 07:27 0:00 imap-login
dovecot 1602 0.0 1.0 3896 1472 ? S 07:27 0:00 imap-login
dovecot 1603 0.0 1.0 3900 1476 ? S 07:27 0:00 imap-login
dovecot 1605 0.0 1.0 3892 1468 ? S 07:27 0:00 pop3-login
dovecot 1606 0.0 1.0 3888 1472 ? S 07:27 0:00 pop3-login
root 1633 0.0 1.1 5636 1532 ? Ss 07:27 0:00 /usr/libexec/po
postfix 1641 0.0 1.2 5740 1620 ? S 07:27 0:00 qmgr -l -t fifo
nobody 1642 0.0 1.5 4932 2084 ? Ss 07:28 0:00 proftpd: (accep
root 1652 0.0 5.0 17384 6764 ? Ss 07:28 0:00 /usr/sbin/httpd
root 1659 0.0 0.8 2504 1076 ? Ss 07:28 0:00 crond
root 1666 0.0 0.6 4440 876 ? Ss 07:28 0:00 /usr/sbin/sasla
root 1669 0.0 0.8 4484 1180 ? S 07:28 0:00 /usr/sbin/sasla
root 1670 0.0 0.6 4440 876 ? S 07:28 0:00 /usr/sbin/sasla
root 1671 0.0 0.6 4440 876 ? S 07:28 0:00 /usr/sbin/sasla
root 1672 0.0 0.6 4440 876 ? S 07:28 0:00 /usr/sbin/sasla
apache 1678 0.0 5.1 17384 6888 ? S 07:28 0:00 /usr/sbin/httpd
apache 1679 0.0 5.3 17516 7236 ? S 07:28 0:00 /usr/sbin/httpd
apache 1680 0.0 5.2 17384 7016 ? S 07:28 0:00 /usr/sbin/httpd
apache 1681 0.0 5.2 17384 7012 ? S 07:28 0:00 /usr/sbin/httpd
apache 1682 0.0 5.1 17384 6888 ? S 07:28 0:00 /usr/sbin/httpd
apache 1683 0.0 5.3 17516 7164 ? S 07:28 0:00 /usr/sbin/httpd
apache 1684 0.0 6.4 21564 8652 ? S 07:28 0:00 /usr/sbin/httpd
apache 1685 0.0 5.1 17384 6872 ? S 07:28 0:00 /usr/sbin/httpd
root 1686 0.0 3.8 6924 5212 ? Ss 07:28 0:00 /usr/bin/perl /
root 1689 0.0 0.3 1544 412 tty1 Ss+ 07:28 0:00 /sbin/mingetty
dovecot 1695 0.0 1.0 3888 1472 ? S 07:39 0:00 pop3-login
root 1741 0.0 1.7 7412 2324 ? Ss 10:35 0:00 sshd: root@nott
root 1745 0.0 0.9 3872 1224 ? Ss 10:35 0:00 /usr/libexec/op
root 1754 0.0 1.7 7240 2312 ? Ss 10:35 0:00 sshd: root@pts/
root 1758 0.0 0.9 2308 1312 pts/0 Ss+ 10:35 0:00 -bash
postfix 1788 0.0 1.1 5684 1508 ? S 10:48 0:00 pickup -l -t fi
root 1789 0.0 1.7 7240 2312 ? Ss 10:54 0:00 sshd: root@pts/
root 1793 0.0 0.9 2308 1312 pts/1 Ss 10:54 0:00 -bash
postfix 1816 0.0 1.6 6836 2248 ? S 10:55 0:00 smtpd -n smtp -
postfix 1817 0.0 1.1 5668 1488 ? S 10:55 0:00 proxymap -t uni
root 1818 0.0 0.5 2408 804 pts/1 R+ 10:56 0:00 ps aux
[root@m5-fedora4-04 ~]#

falko
2nd February 2006, 21:40
[root@m5-fedora4-04 ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 m5-fedora4-04.myxen.com ESMTP Postfix
ehlo localhost
250-m5-fedora4-04.myxen.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5 PLAIN LOGIN
250-AUTH=DIGEST-MD5 CRAM-MD5 PLAIN LOGIN
250 8BITMIME



So you have removed digest-md5 and cram-md5 from the smtpd.conf, and telnet still shows both? This means that your Postfix isn't reading your smtpd.conf, but rather another one.
Please run
updatedb
locate smtpd.conf
and post the output here.

[root@m5-fedora4-04 ~]# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.4 1744 584 ? S 07:27 0:04 init [3]
root 2 0.0 0.0 0 0 ? S 07:27 0:00 [migration/0]
root 3 0.0 0.0 0 0 ? SN 07:27 0:00 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S< 07:27 0:00 [events/0]
root 5 0.0 0.0 0 0 ? S< 07:27 0:00 [khelper]
root 6 0.0 0.0 0 0 ? S< 07:27 0:00 [kthread]
root 7 0.0 0.0 0 0 ? S< 07:27 0:00 [xenwatch]
root 8 0.0 0.0 0 0 ? S< 07:27 0:00 [xenbus]
root 13 0.0 0.0 0 0 ? S< 07:27 0:00 [kblockd/0]
root 33 0.0 0.0 0 0 ? S 07:27 0:00 [pdflush]
root 34 0.0 0.0 0 0 ? S 07:27 0:00 [pdflush]
root 36 0.0 0.0 0 0 ? S< 07:27 0:00 [aio/0]
root 35 0.0 0.0 0 0 ? S 07:27 0:00 [kswapd0]
root 37 0.0 0.0 0 0 ? S< 07:27 0:00 [xfslogd/0]
root 38 0.0 0.0 0 0 ? S< 07:27 0:00 [xfsdatad/0]
root 39 0.0 0.0 0 0 ? S 07:27 0:00 [xfsbufd]
root 578 0.0 0.0 0 0 ? S 07:27 0:00 [xfssyncd]
root 1437 0.0 0.4 1608 652 ? Ss 07:27 0:00 syslogd -m 0
root 1439 0.0 0.3 1560 504 ? Ss 07:27 0:00 klogd -x
root 1448 0.0 1.3 4400 1748 ? Ss 07:27 0:00 /usr/sbin/sshd
root 1510 0.0 0.8 2300 1120 ? S 07:27 0:00 /bin/sh /usr/bi
mysql 1540 0.0 10.6 95460 14340 ? Sl 07:27 0:00 /usr/libexec/my
root 1571 0.0 0.7 3896 1052 ? Ss 07:27 0:00 /usr/sbin/dovec
root 1600 0.0 1.1 6312 1484 ? S 07:27 0:00 dovecot-auth
dovecot 1601 0.0 1.0 3900 1476 ? S 07:27 0:00 imap-login
dovecot 1602 0.0 1.0 3896 1472 ? S 07:27 0:00 imap-login
dovecot 1603 0.0 1.0 3900 1476 ? S 07:27 0:00 imap-login
dovecot 1605 0.0 1.0 3892 1468 ? S 07:27 0:00 pop3-login
dovecot 1606 0.0 1.0 3888 1472 ? S 07:27 0:00 pop3-login
root 1633 0.0 1.1 5636 1532 ? Ss 07:27 0:00 /usr/libexec/po
postfix 1641 0.0 1.2 5740 1620 ? S 07:27 0:00 qmgr -l -t fifo
nobody 1642 0.0 1.5 4932 2084 ? Ss 07:28 0:00 proftpd: (accep
root 1652 0.0 5.0 17384 6764 ? Ss 07:28 0:00 /usr/sbin/httpd
root 1659 0.0 0.8 2504 1076 ? Ss 07:28 0:00 crond
root 1666 0.0 0.6 4440 876 ? Ss 07:28 0:00 /usr/sbin/sasla
root 1669 0.0 0.8 4484 1180 ? S 07:28 0:00 /usr/sbin/sasla
root 1670 0.0 0.6 4440 876 ? S 07:28 0:00 /usr/sbin/sasla
root 1671 0.0 0.6 4440 876 ? S 07:28 0:00 /usr/sbin/sasla
root 1672 0.0 0.6 4440 876 ? S 07:28 0:00 /usr/sbin/sasla
apache 1678 0.0 5.1 17384 6888 ? S 07:28 0:00 /usr/sbin/httpd
apache 1679 0.0 5.3 17516 7236 ? S 07:28 0:00 /usr/sbin/httpd
apache 1680 0.0 5.2 17384 7016 ? S 07:28 0:00 /usr/sbin/httpd
apache 1681 0.0 5.2 17384 7012 ? S 07:28 0:00 /usr/sbin/httpd
apache 1682 0.0 5.1 17384 6888 ? S 07:28 0:00 /usr/sbin/httpd
apache 1683 0.0 5.3 17516 7164 ? S 07:28 0:00 /usr/sbin/httpd
apache 1684 0.0 6.4 21564 8652 ? S 07:28 0:00 /usr/sbin/httpd
apache 1685 0.0 5.1 17384 6872 ? S 07:28 0:00 /usr/sbin/httpd
root 1686 0.0 3.8 6924 5212 ? Ss 07:28 0:00 /usr/bin/perl /
root 1689 0.0 0.3 1544 412 tty1 Ss+ 07:28 0:00 /sbin/mingetty
dovecot 1695 0.0 1.0 3888 1472 ? S 07:39 0:00 pop3-login
root 1741 0.0 1.7 7412 2324 ? Ss 10:35 0:00 sshd: root@nott
root 1745 0.0 0.9 3872 1224 ? Ss 10:35 0:00 /usr/libexec/op
root 1754 0.0 1.7 7240 2312 ? Ss 10:35 0:00 sshd: root@pts/
root 1758 0.0 0.9 2308 1312 pts/0 Ss+ 10:35 0:00 -bash
postfix 1788 0.0 1.1 5684 1508 ? S 10:48 0:00 pickup -l -t fi
root 1789 0.0 1.7 7240 2312 ? Ss 10:54 0:00 sshd: root@pts/
root 1793 0.0 0.9 2308 1312 pts/1 Ss 10:54 0:00 -bash
postfix 1816 0.0 1.6 6836 2248 ? S 10:55 0:00 smtpd -n smtp -
postfix 1817 0.0 1.1 5668 1488 ? S 10:55 0:00 proxymap -t uni
root 1818 0.0 0.5 2408 804 pts/1 R+ 10:56 0:00 ps aux
[root@m5-fedora4-04 ~]#

saslauthd seems to be running, although your output is truncated here. Can you post the whole output of ps aux?

micko_escalade
2nd February 2006, 21:52
[root@m5-fedora4-04 ~]# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.4 1744 584 ? S 07:27 0:04 init [3]
root 2 0.0 0.0 0 0 ? S 07:27 0:00 [migration/0]
root 3 0.0 0.0 0 0 ? SN 07:27 0:00 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S< 07:27 0:00 [events/0]
root 5 0.0 0.0 0 0 ? S< 07:27 0:00 [khelper]
root 6 0.0 0.0 0 0 ? S< 07:27 0:00 [kthread]
root 7 0.0 0.0 0 0 ? S< 07:27 0:00 [xenwatch]
root 8 0.0 0.0 0 0 ? S< 07:27 0:00 [xenbus]
root 13 0.0 0.0 0 0 ? S< 07:27 0:00 [kblockd/0]
root 33 0.0 0.0 0 0 ? S 07:27 0:00 [pdflush]
root 34 0.0 0.0 0 0 ? S 07:27 0:00 [pdflush]
root 36 0.0 0.0 0 0 ? S< 07:27 0:00 [aio/0]
root 35 0.0 0.0 0 0 ? S 07:27 0:00 [kswapd0]
root 37 0.0 0.0 0 0 ? S< 07:27 0:00 [xfslogd/0]
root 38 0.0 0.0 0 0 ? S< 07:27 0:00 [xfsdatad/0]
root 39 0.0 0.0 0 0 ? S 07:27 0:00 [xfsbufd]
root 578 0.0 0.0 0 0 ? S 07:27 0:00 [xfssyncd]
root 1437 0.0 0.4 1608 652 ? Ss 07:27 0:00 syslogd -m 0
root 1439 0.0 0.3 1560 504 ? Ss 07:27 0:00 klogd -x
root 1448 0.0 1.3 4400 1748 ? Ss 07:27 0:00 /usr/sbin/sshd
root 1510 0.0 0.8 2300 1120 ? S 07:27 0:00 /bin/sh /usr/bin/mysqld_safe --defaults-file=/etc/my.cnf --pid-file
mysql 1540 0.0 10.6 95460 14340 ? Sl 07:27 0:00 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --da
root 1571 0.0 0.7 3896 1052 ? Ss 07:27 0:00 /usr/sbin/dovecot
root 1600 0.0 1.1 6312 1484 ? S 07:27 0:00 dovecot-auth
dovecot 1601 0.0 1.0 3900 1476 ? S 07:27 0:00 imap-login
dovecot 1602 0.0 1.0 3896 1472 ? S 07:27 0:00 imap-login
dovecot 1603 0.0 1.0 3900 1476 ? S 07:27 0:00 imap-login
dovecot 1605 0.0 1.0 3892 1468 ? S 07:27 0:00 pop3-login
dovecot 1606 0.0 1.0 3888 1472 ? S 07:27 0:00 pop3-login
root 1633 0.0 1.1 5636 1532 ? Ss 07:27 0:00 /usr/libexec/postfix/master
postfix 1641 0.0 1.2 5740 1620 ? S 07:27 0:00 qmgr -l -t fifo -u
nobody 1642 0.0 1.5 4932 2084 ? Ss 07:28 0:00 proftpd: (accepting connections)
root 1652 0.0 5.0 17384 6764 ? Ss 07:28 0:00 /usr/sbin/httpd
root 1659 0.0 0.8 2504 1076 ? Ss 07:28 0:00 crond
root 1666 0.0 0.6 4440 876 ? Ss 07:28 0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a shadow
root 1669 0.0 0.8 4484 1180 ? S 07:28 0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a shadow
root 1670 0.0 0.6 4440 876 ? S 07:28 0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a shadow
root 1671 0.0 0.6 4440 876 ? S 07:28 0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a shadow
root 1672 0.0 0.6 4440 876 ? S 07:28 0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a shadow
apache 1678 0.0 5.1 17384 6892 ? S 07:28 0:00 /usr/sbin/httpd
apache 1679 0.0 5.3 17516 7236 ? S 07:28 0:00 /usr/sbin/httpd
apache 1680 0.0 5.2 17384 7016 ? S 07:28 0:00 /usr/sbin/httpd
apache 1681 0.0 5.2 17384 7012 ? S 07:28 0:00 /usr/sbin/httpd
apache 1682 0.0 5.1 17384 6888 ? S 07:28 0:00 /usr/sbin/httpd
apache 1683 0.0 5.3 17516 7164 ? S 07:28 0:00 /usr/sbin/httpd
apache 1684 0.0 6.4 21564 8656 ? S 07:28 0:00 /usr/sbin/httpd
apache 1685 0.0 5.1 17384 6888 ? S 07:28 0:00 /usr/sbin/httpd
root 1686 0.0 3.9 6924 5248 ? Ss 07:28 0:00 /usr/bin/perl /usr/libexec/webmin/miniserv.pl /etc/webmin/miniserv.
root 1689 0.0 0.3 1544 412 tty1 Ss+ 07:28 0:00 /sbin/mingetty tty1
dovecot 1695 0.0 1.0 3888 1472 ? S 07:39 0:00 pop3-login
root 1741 0.0 1.7 7412 2340 ? Ss 10:35 0:00 sshd: root@notty
root 1745 0.0 0.9 3872 1224 ? Ss 10:35 0:00 /usr/libexec/openssh/sftp-server
postfix 1859 0.0 1.1 5684 1508 ? S 12:28 0:00 pickup -l -t fifo -u
root 1866 0.0 1.7 7244 2328 ? Ss 12:47 0:00 sshd: root@pts/0
root 1870 0.0 0.9 2300 1300 pts/0 Ss 12:47 0:00 -bash
root 1892 0.0 0.5 2408 800 pts/0 R+ 12:49 0:00 ps aux
[root@m5-fedora4-04 ~]#

how it looks now?

[root@m5-fedora4-04 ~]# updatedb
[root@m5-fedora4-04 ~]# locate smtpd.conf
/etc/postfix/sasl/smtpd.conf
/usr/share/logwatch/default.conf/services/qmail-smtpd.conf
/usr/lib/sasl/smtpd.conf
/usr/lib/sasl2/smtpd.conf
[root@m5-fedora4-04 ~]#



saslauthd seems to be running,
btw, which line tells you that?

falko
2nd February 2006, 23:56
[root@m5-fedora4-04 ~]# updatedb
[root@m5-fedora4-04 ~]# locate smtpd.conf
/etc/postfix/sasl/smtpd.conf
/usr/share/logwatch/default.conf/services/qmail-smtpd.conf
/usr/lib/sasl/smtpd.conf
/usr/lib/sasl2/smtpd.conf
[root@m5-fedora4-04 ~]#

Which of these files /etc/postfix/sasl/smtpd.conf, /usr/lib/sasl/smtpd.conf and /usr/lib/sasl2/smtpd.conf is the one you created/edited manually?
Can you post the output of each one?

micko_escalade
3rd February 2006, 07:34
I've only created /etc/postfix/sasl/smtpd.conf as described in above post #31
bellow are outputs of each one

/etc/postfix/sasl/smtpd.conf
pwcheck_method: saslauthd
mech_list: plain login
log_level: 3

/usr/lib/sasl/smtpd.conf
pwcheck_method: saslauthd
saslauthd_version: 2


/usr/lib/sasl2/smtpd.conf
pwcheck_method: saslauthd

falko
3rd February 2006, 10:08
I've only created /etc/postfix/sasl/smtpd.conf as described in above post #31
bellow are outputs of each one

/etc/postfix/sasl/smtpd.conf
pwcheck_method: saslauthd
mech_list: plain login
log_level: 3

/usr/lib/sasl/smtpd.conf
pwcheck_method: saslauthd
saslauthd_version: 2


/usr/lib/sasl2/smtpd.conf
pwcheck_method: saslauthd


Can you append
mech_list: plain login
log_level: 3 to both /usr/lib/sasl/smtpd.conf and /usr/lib/sasl2/smtpd.conf and restart Postfix? What does the telnet output look like then?

micko_escalade
3rd February 2006, 23:02
Here we go..
[root@m5-fedora4-04 ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 m5-fedora4-04.myxen.com ESMTP Postfix
ehlo localhost
250-m5-fedora4-04.myxen.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250 8BITMIME

falko
4th February 2006, 14:18
This looks better. :) Can you send emails now with Outlook?

micko_escalade
4th February 2006, 20:48
I hate to tell you but I can't same login pops up :(
I know for sure that I have it correct cause I just loged in to SquirrelMail with same info,
how do I un-install postfix and follow from here Postfix With SMTP-AUTH And TLS (http://www.howtoforge.com/perfect_setup_fedora_core_4_p4)
because Fedora core 4 was installed on my VPS by my host not me,

falko
5th February 2006, 11:31
I wouldn't uninstall Postfix, I'd simply run all the Postfix and saslauthd configuration steps from the tutorial over the existing configuration.

micko_escalade
5th February 2006, 18:37
Ok, thanks I'll do that,
hopefully it goes well,
I'll report results.

micko_escalade
7th February 2006, 04:00
This is unbelievable :mad:
same problem even after I followed "Postfix With SMTP-AUTH And TLS" part
I found this small utility on the net that supposely made for debugging purposes
http://postfix.state-of-mind.de/patrick.koetter/saslfinger/
bellow are outputs of ./saslfinger -c and ./saslfinger -c

at the buttom of ./saslfinger -c command it says
Cannot find the smtp_sasl_password_maps parameter in main.cf.
Client-side SMTP AUTH cannot work without this parameter!
is that a hint ?
[root@m5-fedora4-04 saslfinger-1.0]# ./saslfinger -c
saslfinger - postfix Cyrus sasl configuration Mon Feb 6 18:58:56 PST 2006
version: 1.0
mode: client-side SMTP AUTH

-- basics --
Postfix: 2.2.2
System: Fedora Core release 4 (Stentz)

-- smtp is linked to --
libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x4bbe1000)

-- active SMTP AUTH and TLS parameters for smtp --
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes


-- listing of /usr/lib/sasl --
total 404
drwxr-xr-x 2 root root 4096 Feb 5 12:02 .
drwxr-xr-x 46 root root 20480 Feb 6 04:03 ..
-rw-r--r-- 1 root root 4854 Apr 13 2005 libanonymous.a
-rwxr-xr-x 1 root root 873 Apr 13 2005 libanonymous.la
-rwxr-xr-x 1 root root 5808 Apr 13 2005 libanonymous.so
-rwxr-xr-x 1 root root 5808 Apr 13 2005 libanonymous.so.1
-rwxr-xr-x 1 root root 5808 Apr 13 2005 libanonymous.so.1.0.17
-rw-r--r-- 1 root root 10490 Apr 13 2005 libcrammd5.a
-rwxr-xr-x 1 root root 859 Apr 13 2005 libcrammd5.la
-rwxr-xr-x 1 root root 10500 Apr 13 2005 libcrammd5.so
-rwxr-xr-x 1 root root 10500 Apr 13 2005 libcrammd5.so.1
-rwxr-xr-x 1 root root 10500 Apr 13 2005 libcrammd5.so.1.0.19
-rw-r--r-- 1 root root 34148 Apr 13 2005 libdigestmd5.a
-rwxr-xr-x 1 root root 882 Apr 13 2005 libdigestmd5.la
-rwxr-xr-x 1 root root 29900 Apr 13 2005 libdigestmd5.so
-rwxr-xr-x 1 root root 29900 Apr 13 2005 libdigestmd5.so.0
-rwxr-xr-x 1 root root 29900 Apr 13 2005 libdigestmd5.so.0.0.20
-rw-r--r-- 1 root root 12062 Apr 13 2005 libgssapiv2.a
-rwxr-xr-x 1 root root 908 Apr 13 2005 libgssapiv2.la
-rwxr-xr-x 1 root root 12588 Apr 13 2005 libgssapiv2.so
-rwxr-xr-x 1 root root 12588 Apr 13 2005 libgssapiv2.so.1
-rwxr-xr-x 1 root root 12588 Apr 13 2005 libgssapiv2.so.1.0.19
-rw-r--r-- 1 root root 7186 Apr 13 2005 liblogin.a
-rwxr-xr-x 1 root root 849 Apr 13 2005 liblogin.la
-rwxr-xr-x 1 root root 7724 Apr 13 2005 liblogin.so
-rwxr-xr-x 1 root root 7724 Apr 13 2005 liblogin.so.0
-rwxr-xr-x 1 root root 7724 Apr 13 2005 liblogin.so.0.0.7
-rw-r--r-- 1 root root 6734 Apr 13 2005 libplain.a
-rwxr-xr-x 1 root root 851 Apr 13 2005 libplain.la
-rwxr-xr-x 1 root root 7444 Apr 13 2005 libplain.so
-rwxr-xr-x 1 root root 7444 Apr 13 2005 libplain.so.1
-rwxr-xr-x 1 root root 7444 Apr 13 2005 libplain.so.1.0.16
-rw-r--r-- 1 root root 46 Feb 5 11:55 smtpd.conf

-- listing of /usr/lib/sasl2 --
total 3088
drwxr-xr-x 2 root root 4096 Feb 5 12:02 .
drwxr-xr-x 46 root root 20480 Feb 6 04:03 ..
-rw-r--r-- 1 root root 25 May 6 2005 Sendmail.conf
-rwxr-xr-x 1 root root 877 Apr 13 2005 libanonymous.la
-rwxr-xr-x 1 root root 14028 Apr 13 2005 libanonymous.so
-rwxr-xr-x 1 root root 14028 Apr 13 2005 libanonymous.so.2
-rwxr-xr-x 1 root root 14028 Apr 13 2005 libanonymous.so.2.0.20
-rwxr-xr-x 1 root root 865 Apr 13 2005 libcrammd5.la
-rwxr-xr-x 1 root root 16456 Apr 13 2005 libcrammd5.so
-rwxr-xr-x 1 root root 16456 Apr 13 2005 libcrammd5.so.2
-rwxr-xr-x 1 root root 16456 Apr 13 2005 libcrammd5.so.2.0.20
-rwxr-xr-x 1 root root 886 Apr 13 2005 libdigestmd5.la
-rwxr-xr-x 1 root root 45100 Apr 13 2005 libdigestmd5.so
-rwxr-xr-x 1 root root 45100 Apr 13 2005 libdigestmd5.so.2
-rwxr-xr-x 1 root root 45100 Apr 13 2005 libdigestmd5.so.2.0.20
-rwxr-xr-x 1 root root 913 Apr 13 2005 libgssapiv2.la
-rwxr-xr-x 1 root root 26444 Apr 13 2005 libgssapiv2.so
-rwxr-xr-x 1 root root 26444 Apr 13 2005 libgssapiv2.so.2
-rwxr-xr-x 1 root root 26444 Apr 13 2005 libgssapiv2.so.2.0.20
-rwxr-xr-x 1 root root 853 Apr 13 2005 liblogin.la
-rwxr-xr-x 1 root root 14536 Apr 13 2005 liblogin.so
-rwxr-xr-x 1 root root 14536 Apr 13 2005 liblogin.so.2
-rwxr-xr-x 1 root root 14536 Apr 13 2005 liblogin.so.2.0.20
-rwxr-xr-x 1 root root 853 Apr 13 2005 libplain.la
-rwxr-xr-x 1 root root 14696 Apr 13 2005 libplain.so
-rwxr-xr-x 1 root root 14696 Apr 13 2005 libplain.so.2
-rwxr-xr-x 1 root root 14696 Apr 13 2005 libplain.so.2.0.20
-rwxr-xr-x 1 root root 933 Apr 13 2005 libsasldb.la
-rwxr-xr-x 1 root root 880628 Apr 13 2005 libsasldb.so
-rwxr-xr-x 1 root root 880628 Apr 13 2005 libsasldb.so.2
-rwxr-xr-x 1 root root 880628 Apr 13 2005 libsasldb.so.2.0.20
-rw-r--r-- 1 root root 49 Feb 5 12:20 smtpd.conf


Cannot find the smtp_sasl_password_maps parameter in main.cf.
Client-side SMTP AUTH cannot work without this parameter!
[root@m5-fedora4-04 saslfinger-1.0]#

micko_escalade
7th February 2006, 04:00
[root@m5-fedora4-04 saslfinger-1.0]# ./saslfinger -s
saslfinger - postfix Cyrus sasl configuration Mon Feb 6 18:59:34 PST 2006
version: 1.0
mode: server-side SMTP AUTH

-- basics --
Postfix: 2.2.2
System: Fedora Core release 4 (Stentz)

-- smtpd is linked to --
libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x4bbe1000)

-- active SMTP AUTH and TLS parameters for smtpd --
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes


-- listing of /usr/lib/sasl --
total 404
drwxr-xr-x 2 root root 4096 Feb 5 12:02 .
drwxr-xr-x 46 root root 20480 Feb 6 04:03 ..
-rw-r--r-- 1 root root 4854 Apr 13 2005 libanonymous.a
-rwxr-xr-x 1 root root 873 Apr 13 2005 libanonymous.la
-rwxr-xr-x 1 root root 5808 Apr 13 2005 libanonymous.so
-rwxr-xr-x 1 root root 5808 Apr 13 2005 libanonymous.so.1
-rwxr-xr-x 1 root root 5808 Apr 13 2005 libanonymous.so.1.0.17
-rw-r--r-- 1 root root 10490 Apr 13 2005 libcrammd5.a
-rwxr-xr-x 1 root root 859 Apr 13 2005 libcrammd5.la
-rwxr-xr-x 1 root root 10500 Apr 13 2005 libcrammd5.so
-rwxr-xr-x 1 root root 10500 Apr 13 2005 libcrammd5.so.1
-rwxr-xr-x 1 root root 10500 Apr 13 2005 libcrammd5.so.1.0.19
-rw-r--r-- 1 root root 34148 Apr 13 2005 libdigestmd5.a
-rwxr-xr-x 1 root root 882 Apr 13 2005 libdigestmd5.la
-rwxr-xr-x 1 root root 29900 Apr 13 2005 libdigestmd5.so
-rwxr-xr-x 1 root root 29900 Apr 13 2005 libdigestmd5.so.0
-rwxr-xr-x 1 root root 29900 Apr 13 2005 libdigestmd5.so.0.0.20
-rw-r--r-- 1 root root 12062 Apr 13 2005 libgssapiv2.a
-rwxr-xr-x 1 root root 908 Apr 13 2005 libgssapiv2.la
-rwxr-xr-x 1 root root 12588 Apr 13 2005 libgssapiv2.so
-rwxr-xr-x 1 root root 12588 Apr 13 2005 libgssapiv2.so.1
-rwxr-xr-x 1 root root 12588 Apr 13 2005 libgssapiv2.so.1.0.19
-rw-r--r-- 1 root root 7186 Apr 13 2005 liblogin.a
-rwxr-xr-x 1 root root 849 Apr 13 2005 liblogin.la
-rwxr-xr-x 1 root root 7724 Apr 13 2005 liblogin.so
-rwxr-xr-x 1 root root 7724 Apr 13 2005 liblogin.so.0
-rwxr-xr-x 1 root root 7724 Apr 13 2005 liblogin.so.0.0.7
-rw-r--r-- 1 root root 6734 Apr 13 2005 libplain.a
-rwxr-xr-x 1 root root 851 Apr 13 2005 libplain.la
-rwxr-xr-x 1 root root 7444 Apr 13 2005 libplain.so
-rwxr-xr-x 1 root root 7444 Apr 13 2005 libplain.so.1
-rwxr-xr-x 1 root root 7444 Apr 13 2005 libplain.so.1.0.16
-rw-r--r-- 1 root root 46 Feb 5 11:55 smtpd.conf

-- listing of /usr/lib/sasl2 --
total 3088
drwxr-xr-x 2 root root 4096 Feb 5 12:02 .
drwxr-xr-x 46 root root 20480 Feb 6 04:03 ..
-rw-r--r-- 1 root root 25 May 6 2005 Sendmail.conf
-rwxr-xr-x 1 root root 877 Apr 13 2005 libanonymous.la
-rwxr-xr-x 1 root root 14028 Apr 13 2005 libanonymous.so
-rwxr-xr-x 1 root root 14028 Apr 13 2005 libanonymous.so.2
-rwxr-xr-x 1 root root 14028 Apr 13 2005 libanonymous.so.2.0.20
-rwxr-xr-x 1 root root 865 Apr 13 2005 libcrammd5.la
-rwxr-xr-x 1 root root 16456 Apr 13 2005 libcrammd5.so
-rwxr-xr-x 1 root root 16456 Apr 13 2005 libcrammd5.so.2
-rwxr-xr-x 1 root root 16456 Apr 13 2005 libcrammd5.so.2.0.20
-rwxr-xr-x 1 root root 886 Apr 13 2005 libdigestmd5.la
-rwxr-xr-x 1 root root 45100 Apr 13 2005 libdigestmd5.so
-rwxr-xr-x 1 root root 45100 Apr 13 2005 libdigestmd5.so.2
-rwxr-xr-x 1 root root 45100 Apr 13 2005 libdigestmd5.so.2.0.20
-rwxr-xr-x 1 root root 913 Apr 13 2005 libgssapiv2.la
-rwxr-xr-x 1 root root 26444 Apr 13 2005 libgssapiv2.so
-rwxr-xr-x 1 root root 26444 Apr 13 2005 libgssapiv2.so.2
-rwxr-xr-x 1 root root 26444 Apr 13 2005 libgssapiv2.so.2.0.20
-rwxr-xr-x 1 root root 853 Apr 13 2005 liblogin.la
-rwxr-xr-x 1 root root 14536 Apr 13 2005 liblogin.so
-rwxr-xr-x 1 root root 14536 Apr 13 2005 liblogin.so.2
-rwxr-xr-x 1 root root 14536 Apr 13 2005 liblogin.so.2.0.20
-rwxr-xr-x 1 root root 853 Apr 13 2005 libplain.la
-rwxr-xr-x 1 root root 14696 Apr 13 2005 libplain.so
-rwxr-xr-x 1 root root 14696 Apr 13 2005 libplain.so.2
-rwxr-xr-x 1 root root 14696 Apr 13 2005 libplain.so.2.0.20
-rwxr-xr-x 1 root root 933 Apr 13 2005 libsasldb.la
-rwxr-xr-x 1 root root 880628 Apr 13 2005 libsasldb.so
-rwxr-xr-x 1 root root 880628 Apr 13 2005 libsasldb.so.2
-rwxr-xr-x 1 root root 880628 Apr 13 2005 libsasldb.so.2.0.20
-rw-r--r-- 1 root root 49 Feb 5 12:20 smtpd.conf




-- content of /usr/lib/sasl/smtpd.conf --
pwcheck_method: saslauthd
saslauthd_version: 2
-- content of /usr/lib/sasl2/smtpd.conf --
pwcheck_method: saslauthd
mech_list: plain login


-- active services in /etc/postfix/master.cf --
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
smtp inet n - n - - smtpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
-o fallback_relay=
showq unix n - n - - showq
error unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient

-- mechanisms on localhost --
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN


-- end of saslfinger output --

[root@m5-fedora4-04 saslfinger-1.0]#

falko
7th February 2006, 12:38
Please run postconf -e 'smtp_sasl_password_maps =' and restart Postfix.

micko_escalade
7th February 2006, 15:08
Still same problem :(

falko
7th February 2006, 21:30
Maybe the easiest way would be to completely re-install your server, following this tutorial as close as you can: http://www.howtoforge.com/perfect_setup_fedora_core_4

micko_escalade
8th February 2006, 02:16
Since the server is not at my home I don't think I can follow the setup,
but anyway thank you for your help!

micko_escalade
12th February 2006, 07:25
I found solution!

just in case someone gets stuck with same problem,
problem was that shadow was missing, when I switched back in saslauthd to pam I could send/receive no problem, so I run pwconv and that created shadow and in saslauthd I changed it back to shadow and its working.
Amen to that :)