LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-04-2008, 11:21 PM   #16
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56

Quote:
Originally Posted by billymayday View Post
What version of postfix are you building, and remind me - why are you building from source?
I'm following this howto;

POSTFIX
http://www.postfixvirtual.net/postfi...l.html#postfix

CYRUS_SASL
http://www.postfixvirtual.net/postfi...html#cyrussasl


building the mail server. All packages were compiled from sources.


Version;
postfix-2.5.5.tar.gz


I have tried building Postfix Virtual by following other 3 howtos before, all packages download on Debian repo. After finish all servers can't work properly. This is my 4th round.


I think I have to adjust the options on configuring postfix during installation. Any idea? TIA


satimis

Last edited by satimis; 11-04-2008 at 11:27 PM.
 
Old 11-05-2008, 02:21 AM   #17
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
And did you check the location of the various files in the postfix make (eg /usr/local/include/sasl)?
 
Old 11-05-2008, 04:14 AM   #18
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
That howto is for a much older version of postfix. You really should study the docs that came in the tarball to see if you can find any hints on enabling sasl

Edit - have a look in postfix-2.5.5/README_FILES/SASL_README

Last edited by billymayday; 11-05-2008 at 04:22 AM.
 
Old 11-05-2008, 04:16 AM   #19
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by billymayday View Post
And did you check the location of the various files in the postfix make (eg /usr/local/include/sasl)?
I'm not absolutely sure. However if there is no such files/directory it complains.


Most times I won't just copy/paste the command on console if having path, e.g.;

mkdir /usr/local/vmail


I did [tab] /usr/lo...

allowing it to find its path first before typing "vmail"


But for coping the rule on main.cf
relocated_maps = mysql:/etc/postfix/mysql-relocated.cf

[tab] /etc/po.... doesn't work

as an example


I'm now comparing the option on config at installation;

POSTFIX
http://www.postfixvirtual.net/postfi...l.html#postfix
Code:
$ make makefiles 'CCARGS=-DHAS_MYSQL \
-I/usr/local/mysql/include/mysql  -DUSE_SASL_AUTH \
-I/usr/local/include/sasl -I/usr/local/bdb/include \
-DUSE_TLS -I/usr/local/ssl/include/openssl ' \
  'AUXLIBS=-L/usr/local/mysql/lib/mysql -lmysqlclient \
-lz -lm -L/usr/local/lib -lsasl2  -L/usr/local/bdb/lib\
-L/usr/local/ssl/lib -lssl -lcrypto'
#make install

On
Building Postfix with Cyrus SASL support
http://www.postfix.org/SASL_README.html#build_postfix
(for Cyrus SASL version 2.1.x):
Code:
    % make tidy # if you have left-over files from a previous build
    % make makefiles CCARGS="-DUSE_SASL_AUTH -DUSE_CYRUS_SASL \
        -I/usr/local/include/sasl" AUXLIBS="-L/usr/local/lib -lsasl2"

and;

Cyrus SASL configuration for the Postfix SMTP server
http://www.postfix.org/SASL_README.html#build_postfix
Code:
/etc/postfix/main.cf:
    # Postfix 2.3 and later
    smtpd_sasl_path = smtpd
    # Postfix < 2.3
    smtpd_sasl_application_name = smtpd
According to the howto which I'm following they are missing;

# grep smtpd_sasl_path /etc/postfix/main.cf
# grep smtpd_sasl2_path /etc/postfix/main.cf
Both no print out

Code:
 (Cyrus SASL version 2.1.x)

    /usr/local/lib/sasl2/smtpd.conf:
        pwcheck_method: auxprop
        auxprop_plugin: sasldb
        mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5

On the howto;
Cyrus_SASL
http://www.postfixvirtual.net/postfi...html#cyrussasl
Code:
# smtpd.conf
pwcheck_method: auxprop
auxprop_plugin: sql
mech_list: plain login

On the howto;
Create SQL FILE:
http://www.postfixvirtual.net/postfixconf.html#mysql

CREATE TABLE postfix_users (
Code:
uid int(11) unsigned NOT NULL default '1001',
  gid int(11) unsigned NOT NULL default '1001',
I put "1005" here


/etc/group
Code:
......
mysql:x:1001:
postdrop:x:1002:
postfix:x:1003:
courier:x:1004:
vmail:x:1005:
named:x:1006:
amavis:x:1007:
clamav:x:1008:

Any comment? TIA


satimis
 
Old 11-05-2008, 04:27 AM   #20
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
Did you see my edit above - I think you were posting when I made it.
 
Old 11-05-2008, 04:37 AM   #21
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
Code:
These instructions assume that you build Postfix from source code as described
in the INSTALL document. Some modification may be required if you build Postfix
from a vendor-specific source package.

The following assumes that the Cyrus SASL include files are in /usr/local/
include, and that the Cyrus SASL libraries are in /usr/local/lib.

On some systems this generates the necessary Makefile definitions:

(for Cyrus SASL version 1.5.x):

    % make tidy # if you have left-over files from a previous build
    % make makefiles CCARGS="-DUSE_SASL_AUTH -DUSE_CYRUS_SASL \
        -I/usr/local/include" AUXLIBS="-L/usr/local/lib -lsasl"

(for Cyrus SASL version 2.1.x):

    % make tidy # if you have left-over files from a previous build
    % make makefiles CCARGS="-DUSE_SASL_AUTH -DUSE_CYRUS_SASL \
        -I/usr/local/include/sasl" AUXLIBS="-L/usr/local/lib -lsasl2"
 
Old 11-05-2008, 05:18 AM   #22
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by billymayday View Post
That howto is for a much older version of postfix. You really should study the docs that came in the tarball to see if you can find any hints on enabling sasl

Edit - have a look in postfix-2.5.5/README_FILES/SASL_README
# ls /usr/local/src/postfix-2.5.5
Code:
AAAREADME       PORTING            TLS_ACKNOWLEDGEMENTS  include
COMPATIBILITY   README_FILES       TLS_CHANGES           lib
COPYRIGHT       RELEASE_NOTES      TLS_LICENSE           libexec
HISTORY         RELEASE_NOTES-1.0  US_PATENT_6321267     makedefs
INSTALL         RELEASE_NOTES-1.1  auxiliary             man
IPv6-ChangeLog  RELEASE_NOTES-2.0  bin                   mantools
LICENSE         RELEASE_NOTES-2.1  conf                  pflogsumm-conn-delays-dsn-patch
Makefile        RELEASE_NOTES-2.2  examples              postfix-install
Makefile.in     RELEASE_NOTES-2.3  html                  proto
Makefile.init   RELEASE_NOTES-2.4  implementation-notes  src

# ls /usr/local/src/postfix-2.5.5/examples/
chroot-setup/ qmail-local/ smtpd-policy/

# ls /usr/local/src/postfix-2.5.5/examples/smtpd-policy/
greylist.pl README.SPF

# ls /usr/local/src/postfix-2.5.5/conf/
Code:
access             generic            main.cf.default    postfix-script     transport
aliases            header_checks      makedefs.out       post-install       virtual
bounce.cf.default  LICENSE            master.cf          relocated
canonical          main.cf            postfix-files      TLS_LICENSE

Just read;
# nano /usr/local/src/postfix-2.5.5/AAAREADME
# nano /usr/local/src/postfix-2.5.5/INSTALL
# nano /usr/local/src/postfix-2.5.5/RELEASE_NOTES-2.4
# nano /usr/local/src/postfix-2.5.5/conf/virtual
# nano /usr/local/src/postfix-2.5.5/postfix-install (install script)
Nothing in connection with sasl/sasl2 found


# ls /usr/local/src/postfix-2.5.5/html/
Code:
ADDRESS_CLASS_README.html           TLS_LEGACY_README.html  postconf.1.html
ADDRESS_REWRITING_README.html       TLS_README.html         postconf.5.html
ADDRESS_VERIFICATION_README.html    TUNING_README.html      postdrop.1.html
BACKSCATTER_README.html             UUCP_README.html        postfix-logo.jpg
BASIC_CONFIGURATION_README.html     VERP_README.html        postfix-manuals.html
BUILTIN_FILTER_README.html          VIRTUAL_README.html     postfix-power.png
CDB_README.html                     XCLIENT_README.html     postfix.1.html
CONNECTION_CACHE_README.html        XFORWARD_README.html    postkick.1.html
CONTENT_INSPECTION_README.html      access.5.html           postlock.1.html
DATABASE_README.html                aliases.5.html          postlog.1.html
DB_README.html                      anvil.8.html            postmap.1.html
DEBUG_README.html                   bounce.5.html           postqueue.1.html
DSN_README.html                     bounce.8.html           postsuper.1.html
ETRN_README.html                    canonical.5.html        proxymap.8.html
FILTER_README.html                  cidr_table.5.html       qmgr.8.html
INSTALL.html                        cleanup.8.html          qmqp-sink.1.html
IPV6_README.html                    defer.8.html            qmqp-source.1.html
LDAP_README.html                    discard.8.html          qmqpd.8.html
LINUX_README.html                   error.8.html            qshape.1.html
LOCAL_RECIPIENT_README.html         flush.8.html            regexp_table.5.html
MAILDROP_README.html                generic.5.html          relocated.5.html
MILTER_README.html                  header_checks.5.html    scache.8.html
MYSQL_README.html                   index.html              sendmail.1.html
Makefile.in                         ldap_table.5.html       showq.8.html
NFS_README.html                     lmtp.8.html             smtp-sink.1.html
OVERVIEW.html                       local.8.html            smtp-source.1.html
PACKAGE_README.html                 mailq.1.html            smtp.8.html
PCRE_README.html                    master.5.html           smtpd.8.html
PGSQL_README.html                   master.8.html           spawn.8.html
QSHAPE_README.html                  mysql_table.5.html      tcp_table.5.html
RESTRICTION_CLASS_README.html       newaliases.1.html       tlsmgr.8.html
SASL_README.html                    nisplus_table.5.html    trace.8.html
SCHEDULER_README.html               oqmgr.8.html            transport.5.html
SMTPD_ACCESS_README.html            pcre_table.5.html       trivial-rewrite.8.html
SMTPD_POLICY_README.html            pgsql_table.5.html      verify.8.html
SMTPD_PROXY_README.html             pickup.8.html           virtual.5.html
SOHO_README.html                    pipe.8.html             virtual.8.html
STANDARD_CONFIGURATION_README.html  postalias.1.html
STRESS_README.html                  postcat.1.html

Neither I can read /usr/local/src/postfix-2.5.5/html/SASL_README.html on browser - file NOT found.


satimis
 
Old 11-05-2008, 05:21 AM   #23
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by billymayday View Post
Did you see my edit above - I think you were posting when I made it.
Yes, I did. Please see my posting #22


satimis
 
Old 11-05-2008, 05:25 AM   #24
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by billymayday View Post
Code:
These instructions assume that you build Postfix from source code as described
in the INSTALL document. Some modification may be required if you build Postfix
from a vendor-specific source package.

The following assumes that the Cyrus SASL include files are in /usr/local/
include, and that the Cyrus SASL libraries are in /usr/local/lib.

On some systems this generates the necessary Makefile definitions:

- snip -

(for Cyrus SASL version 2.1.x):

    % make tidy # if you have left-over files from a previous build
    % make makefiles CCARGS="-DUSE_SASL_AUTH -DUSE_CYRUS_SASL \
        -I/usr/local/include/sasl" AUXLIBS="-L/usr/local/lib -lsasl2"
I can't use above exactly because using mysql libraries. I must add/select above to the config on the howto which I'm following.


satimis
 
Old 11-05-2008, 05:28 AM   #25
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
It would have been in README_FILES, but this is the same

http://www.postfix.org/SASL_README.html#build_sasl

Note the differences between this version and what's in your howto. Ignore the mysql and other stuff, and focus on the sasl bit. You'll probably need to make tidy as well.
 
Old 11-05-2008, 05:47 AM   #26
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by billymayday View Post
It would have been in README_FILES, but this is the same

http://www.postfix.org/SASL_README.html#build_sasl

Note the differences between this version and what's in your howto. Ignore the mysql and other stuff, and focus on the sasl bit.
I have no problem building mail server running either dovecot or sasl without MySQL libraries. I have a working mail server running on this Xen box.


This is only a test.


Quote:
You'll probably need to make tidy as well.
I erased the old directory and extracted a new one on /usr/local/src/cyrus-sasl-2.1.22.tar.gz


Edit:


# ldd /usr/libexec/postfix/smtpd
Code:
         linux-gate.so.1 =>  (0xb7fa0000)
         libmysqlclient.so.15 =>
 /usr/local/mysql/lib/mysql/libmysqlclient.so.15 (0xb7f23000)
         libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7efe000)
         libsasl2.so.2 => /usr/local/lib/libsasl2.so.2 (0xb7ee7000)
postfix was built with sasl support, libsasl2.so.2 being there.


I think the problem is here;


# imtest -a cyrus -m LOGIN localhost
Code:
imtest: /usr/local/lib/libsasl2.so.2: no version information available
(required by imtest)
connect: Connection refused
failure: Network initialization

# ldconfig -p | grep libsasl2
Code:
        libsasl2.so.2 (libc6) => /usr/local/lib/libsasl2.so.2
        libsasl2.so.2 (libc6) => /usr/lib/libsasl2.so.2
        libsasl2.so (libc6) => /usr/local/lib/libsasl2.so

libsasl2.so.2 (libc6) is symbolic linked to 2 files. How it comes?
Which config file controls it?


I suppose the 2nd link is correct.


# ls -l /usr/local/lib/ | grep libsasl2.so.2
Code:
lrwxrwxrwx 1 root staff      18 Nov  5 01:57 libsasl2.so ->
libsasl2.so.2.0.22
lrwxrwxrwx 1 root staff      18 Nov  5 01:57 libsasl2.so.2 ->
libsasl2.so.2.0.22
-rwxr-xr-x 1 root staff  290279 Nov  5 01:57 libsasl2.so.2.0.22

satimis

Last edited by satimis; 11-05-2008 at 09:48 AM.
 
Old 11-05-2008, 01:37 PM   #27
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
Did you build your working version with sasl from source or a package? The flags postfix suggests you use to build with sasl support are not the same as the sasl flags you say you are using from your howto:
Code:
$ make makefiles 'CCARGS=-DHAS_MYSQL \
-I/usr/local/mysql/include/mysql  -DUSE_SASL_AUTH \
-I/usr/local/include/sasl -I/usr/local/bdb/include \
-DUSE_TLS -I/usr/local/ssl/include/openssl ' \
  'AUXLIBS=-L/usr/local/mysql/lib/mysql -lmysqlclient \
-lz -lm -L/usr/local/lib -lsasl2  -L/usr/local/bdb/lib\
-L/usr/local/ssl/lib -lssl -lcrypto'
versus
Code:
make makefiles CCARGS="-DUSE_SASL_AUTH -DUSE_CYRUS_SASL \
        -I/usr/local/include/sasl" AUXLIBS="-L/usr/local/lib -lsasl2"
I'd be adding "-DUSE_CYRUS_SASL" to my make makefiles arguments.

I think you've got your thoughts about those links the wrong way around. All you've shown is libsasl2.so and libsasl2.so.2 point to the same target. Doesn't seem like a problem.
 
Old 11-05-2008, 05:19 PM   #28
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
Satimis, I had a quick play on an old RH box building from source.

Adding -DUSE_CYRUS_SASL fixes the postconf -a only reporting dovecot - it reports cyrus once rebuilt.

I suspect your problem is with your sasl build. I'll see if I get a chance to build that at some stage - I'm using a package. Here's my command line that works.

Code:
make makefiles 'CCARGS=-DHAS_MYSQL \
-I/usr/include/mysql  -DUSE_SASL_AUTH -DUSE_CYRUS_SASL \
-I/usr/include/sasl -I/usr/include \
-DUSE_TLS -I/usr/include/openssl ' \
  'AUXLIBS=-L/usr/lib/mysql -lmysqlclient \
-lz -lm -L/usr/lib -lsasl2  -L/usr/bdb/lib\
-L/usr -lssl -lcrypto'
Note my librtary locations are clearly different from yours. The only real change is the addition of -DUSE_CYRUS_SASL.
 
Old 11-06-2008, 01:09 AM   #29
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by billymayday View Post
Satimis, I had a quick play on an old RH box building from source.

Adding -DUSE_CYRUS_SASL fixes the postconf -a only reporting dovecot - it reports cyrus once rebuilt.

I suspect your problem is with your sasl build. I'll see if I get a chance to build that at some stage - I'm using a package. Here's my command line that works.

Code:
make makefiles 'CCARGS=-DHAS_MYSQL \
-I/usr/include/mysql  -DUSE_SASL_AUTH -DUSE_CYRUS_SASL \
-I/usr/include/sasl -I/usr/include \
-DUSE_TLS -I/usr/include/openssl ' \
  'AUXLIBS=-L/usr/lib/mysql -lmysqlclient \
-lz -lm -L/usr/lib -lsasl2  -L/usr/bdb/lib\
-L/usr -lssl -lcrypto'
Note my librtary locations are clearly different from yours. The only real change is the addition of -DUSE_CYRUS_SASL.
Hi billymayday,


Thanks for your advice and time.


Rebuilt postfix. It needs full path on running make;
Code:
$ make makefiles 'CCARGS=-DHAS_MYSQL \
-I/usr/local/mysql/include/mysql  -DUSE_SASL_AUTH -DUSE_CYRUS_SASL \
-I/usr/local/include/sasl -I/usr/local/bdb/include \
-DUSE_TLS -I/usr/local/ssl/include ' \
 'AUXLIBS=-L/usr/local/mysql/lib/mysql -lmysqlclient \
-lz -lm -L/usr/local/lib -lsasl2 \
-L/usr/local/bdb/lib \
The above is working.

# make install
Code:
.....
.....


Please specify the prefix for installed file names. Specify this ONLY
if you are building ready-to-install packages for distribution to other
machines.
install_root: [/]

Please specify a directory for scratch files while installing Postfix. You
must have write permission in this directory.
tempdir: [/usr/local/src/postfix-2.5.5]

Please specify the final destination directory for installed Postfix
configuration files.
config_directory: [/etc/postfix]

Please specify the final destination directory for installed Postfix
administrative commands. This directory should be in the command search
path of adminstrative users.
command_directory: [/usr/sbin]

Please specify the final destination directory for installed Postfix
daemon programs. This directory should not be in the command search path
of any users.
daemon_directory: [/usr/libexec/postfix]

Please specify the final destination directory for Postfix-writable
data files such as caches or random numbers. This directory should not
be shared with non-Postfix software.
data_directory: [/var/lib/postfix]

Please specify the destination directory for the Postfix HTML
files. Specify "no" if you do not want to install these files.
html_directory: [no]

Please specify the owner of the Postfix queue. Specify an account with
numerical user ID and group ID values that are not used by any other
accounts on the system.
mail_owner: [postfix]

Please specify the final destination pathname for the installed Postfix
mailq command. This is the Sendmail-compatible mail queue listing command.
mailq_path: [/usr/bin/mailq]

Please specify the destination directory for the Postfix on-line manual
pages. You can no longer specify "no" here.
manpage_directory: [/usr/local/man]

Please specify the final destination pathname for the installed Postfix
newaliases command. This is the Sendmail-compatible command to build
alias databases for the Postfix local delivery agent.
newaliases_path: [/usr/bin/newaliases]

Please specify the final destination directory for Postfix queues.
queue_directory: [/var/spool/postfix]

Please specify the destination directory for the Postfix README
files. Specify "no" if you do not want to install these files.
readme_directory: [no]

Please specify the final destination pathname for the installed Postfix
sendmail command. This is the Sendmail-compatible mail posting interface.
sendmail_path: [/usr/sbin/sendmail]

Please specify the group for mail submission and for queue management
commands. Specify a group name with a numerical group ID that is
not shared with other accounts, not even with the Postfix mail_owner
account. You can no longer specify "no" here.
setgid_group: [postdrop]
Updating /usr/libexec/postfix/anvil...
Updating /usr/libexec/postfix/bounce...
Updating /usr/libexec/postfix/cleanup...
Updating /usr/libexec/postfix/discard...
Updating /usr/libexec/postfix/error...
Updating /usr/libexec/postfix/flush...
Updating /usr/libexec/postfix/local...
Updating /usr/libexec/postfix/master...
Updating /usr/libexec/postfix/oqmgr...
Updating /usr/libexec/postfix/pickup...
Updating /usr/libexec/postfix/pipe...
Updating /usr/libexec/postfix/proxymap...
Updating /usr/libexec/postfix/qmgr...
Updating /usr/libexec/postfix/qmqpd...
Updating /usr/libexec/postfix/scache...
Updating /usr/libexec/postfix/showq...
Updating /usr/libexec/postfix/smtp...
Updating /usr/libexec/postfix/smtpd...
Updating /usr/libexec/postfix/spawn...
Updating /usr/libexec/postfix/tlsmgr...
Updating /usr/libexec/postfix/trivial-rewrite...
Updating /usr/libexec/postfix/verify...
Updating /usr/libexec/postfix/virtual...
Updating /usr/libexec/postfix/nqmgr...
Updating /usr/libexec/postfix/lmtp...
Updating /usr/sbin/postalias...
Updating /usr/sbin/postcat...
Updating /usr/sbin/postconf...
Updating /usr/sbin/postfix...
Updating /usr/sbin/postkick...
Updating /usr/sbin/postlock...
Updating /usr/sbin/postlog...
Updating /usr/sbin/postmap...
Updating /usr/sbin/postsuper...
Updating /usr/sbin/postdrop...
Updating /usr/sbin/postqueue...
Updating /usr/sbin/sendmail...
Skipping /usr/bin/newaliases...
Skipping /usr/bin/mailq...
Skipping /etc/postfix/LICENSE...
Skipping /etc/postfix/TLS_LICENSE...
Skipping /etc/postfix/access...
Skipping /etc/postfix/aliases...
Skipping /etc/postfix/bounce.cf.default...
Skipping /etc/postfix/canonical...
Skipping /etc/postfix/generic...
Skipping /etc/postfix/header_checks...
Skipping /etc/postfix/main.cf.default...
Skipping /etc/postfix/main.cf...
Updating /etc/postfix/makedefs.out...
Skipping /etc/postfix/master.cf...
Skipping /etc/postfix/postfix-files...
Skipping /etc/postfix/relocated...
Skipping /etc/postfix/transport...
Skipping /etc/postfix/virtual...
Skipping /etc/postfix/postfix-script...
Skipping /etc/postfix/post-install...
Skipping /usr/local/man/man1/mailq.1...
Skipping /usr/local/man/man1/newaliases.1...
Skipping /usr/local/man/man1/postalias.1...
Skipping /usr/local/man/man1/postcat.1...
Skipping /usr/local/man/man1/postconf.1...
Skipping /usr/local/man/man1/postdrop.1...
Skipping /usr/local/man/man1/postfix.1...
Skipping /usr/local/man/man1/postkick.1...
Skipping /usr/local/man/man1/postlock.1...
Skipping /usr/local/man/man1/postlog.1...
Skipping /usr/local/man/man1/postmap.1...
Skipping /usr/local/man/man1/postqueue.1...
Skipping /usr/local/man/man1/postsuper.1...
Skipping /usr/local/man/man1/sendmail.1...
Skipping /usr/local/man/man5/access.5...
Skipping /usr/local/man/man5/aliases.5...
Skipping /usr/local/man/man5/body_checks.5...
Skipping /usr/local/man/man5/bounce.5...
Skipping /usr/local/man/man5/canonical.5...
Skipping /usr/local/man/man5/cidr_table.5...
Skipping /usr/local/man/man5/generic.5...
Skipping /usr/local/man/man5/header_checks.5...
Skipping /usr/local/man/man5/ldap_table.5...
Skipping /usr/local/man/man5/master.5...
Skipping /usr/local/man/man5/mysql_table.5...
Skipping /usr/local/man/man5/nisplus_table.5...
Skipping /usr/local/man/man5/pcre_table.5...
Skipping /usr/local/man/man5/pgsql_table.5...
Skipping /usr/local/man/man5/postconf.5...
Skipping /usr/local/man/man5/regexp_table.5...
Skipping /usr/local/man/man5/relocated.5...
Skipping /usr/local/man/man5/tcp_table.5...
Skipping /usr/local/man/man5/transport.5...
Skipping /usr/local/man/man5/virtual.5...
Skipping /usr/local/man/man8/bounce.8...
Skipping /usr/local/man/man8/cleanup.8...
Skipping /usr/local/man/man8/anvil.8...
Skipping /usr/local/man/man8/defer.8...
Skipping /usr/local/man/man8/discard.8...
Skipping /usr/local/man/man8/error.8...
Skipping /usr/local/man/man8/flush.8...
Skipping /usr/local/man/man8/lmtp.8...
Skipping /usr/local/man/man8/local.8...
Skipping /usr/local/man/man8/master.8...
Skipping /usr/local/man/man8/oqmgr.8...
Skipping /usr/local/man/man8/pickup.8...
Skipping /usr/local/man/man8/pipe.8...
Skipping /usr/local/man/man8/proxymap.8...
Skipping /usr/local/man/man8/qmgr.8...
Skipping /usr/local/man/man8/qmqpd.8...
Skipping /usr/local/man/man8/scache.8...
Skipping /usr/local/man/man8/showq.8...
Skipping /usr/local/man/man8/smtp.8...
Skipping /usr/local/man/man8/smtpd.8...
Skipping /usr/local/man/man8/spawn.8...
Skipping /usr/local/man/man8/tlsmgr.8...
Skipping /usr/local/man/man8/trace.8...
Skipping /usr/local/man/man8/trivial-rewrite.8...
Skipping /usr/local/man/man8/verify.8...
Skipping /usr/local/man/man8/virtual.8...
All items - I selected default pressing [Enter]


Edited main.cf and master cf per the howto.


# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.

Still hanging here


~# tail /var/log/mail.log
Code:
Nov  6 06:51:11 xen03 postfix/master[1144]: warning: process /usr/libexec/postfix/smtpd pid 1276 exit status 127
Nov  6 06:51:11 xen03 postfix/master[1144]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Nov  6 06:52:11 xen03 postfix/master[1144]: warning: process /usr/libexec/postfix/smtpd pid 1277 exit status 127
Nov  6 06:52:11 xen03 postfix/master[1144]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Nov  6 06:53:11 xen03 postfix/master[1144]: warning: process /usr/libexec/postfix/smtpd pid 1278 exit status 127
Nov  6 06:53:11 xen03 postfix/master[1144]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Nov  6 06:53:29 xen03 postfix/postfix-script[1281]: refreshing the Postfix mail system
Nov  6 06:53:29 xen03 postfix/master[1144]: reload configuration /etc/postfix
Nov  6 06:54:11 xen03 postfix/master[1144]: warning: process /usr/libexec/postfix/smtpd pid 1286 exit status 127
Nov  6 06:54:11 xen03 postfix/master[1144]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling

# postconf -n
Code:
alias_maps = mysql:/etc/postfix/mysql-aliases.cf
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
disable_vrfy_command = yes
home_mailbox = Maildir/
html_directory = no
local_recipient_maps = $alias_maps $virtual_mailbox_maps unix:passwd.byname
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
mydestination = $myhostname
mydomain = satimis.com
myhostname = xen03.satimis.com
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
relay_domains =
relocated_maps = mysql:/etc/postfix/mysql-relocated.cf
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
show_user_unknown_table_name = no
smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-client.cf
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_etrn_restrictions = reject
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,check_recipient_access mysql:/etc/postfix/mysql-recipient.cf,reject_unauth_destination,permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-sender.cf
smtpd_tls_cert_file = /etc/postfix/postfix.pem
smtpd_tls_key_file = $smtpd_tls_cert_file
smtpd_use_tls = yes
transport_maps = mysql:/etc/postfix/mysql-transport.cf
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_gid_maps = static:1005
virtual_mailbox_base = /usr/local/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
virtual_minimum_uid = 100
virtual_transport = maildrop
virtual_uid_maps = static:1005

# postconf -d
is a long file difficult to post here.


# /home/satimis/postfinger
Code:
postfinger - postfix configuration on Thu Nov  6 07:07:35 UTC 2008
version: 1.30

Warning: postfinger output may show private configuration information,
such as ip addresses and/or domain names which you do not want to show
to the public.  If this is the case it is your responsibility to modify
the output to hide this private information.  [Remove this warning with
the --nowarn option.]

--System Parameters--
mail_version = 2.5.5
hostname = xen03.satimis.com
uname = Linux xen03.satimis.com 2.6.18-xen #1 SMP Fri May 18 16:11:33 BST 2007 i686 GNU/Linux

--Packaging information--

--main.cf non-default parameters--
alias_maps = mysql:/etc/postfix/mysql-aliases.cf
broken_sasl_auth_clients = yes
content_filter = smtp-amavis:[127.0.0.1]:10024
disable_vrfy_command = yes
home_mailbox = Maildir/
local_recipient_maps = $alias_maps $virtual_mailbox_maps unix:passwd.byname
mydestination = $myhostname
relay_domains =
relocated_maps = mysql:/etc/postfix/mysql-relocated.cf
show_user_unknown_table_name = no
smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-client.cf
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_etrn_restrictions = reject
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,check_recipient_access mysql:/etc/postfix/mysql-recipient.cf,reject_unauth_destination,permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-sender.cf
smtpd_tls_cert_file = /etc/postfix/postfix.pem
smtpd_use_tls = yes
transport_maps = mysql:/etc/postfix/mysql-transport.cf
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_gid_maps = static:1005
virtual_mailbox_base = /usr/local/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
virtual_transport = maildrop
virtual_uid_maps = static:1005

--master.cf--
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
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       n       -       -       smtp
relay     unix  -       -       n       -       -       smtp
        -o smtp_fallback_relay=
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
retry     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
  flags=Ru user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
smtp-amavis unix -      -       n       -       2  lmtp
    -o lmtp_data_done_timeout=1200
    -o lmtp_send_xforward_command=yes
127.0.0.1:10025 inet n  -       n       -       -  smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_client_restrictions=
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks=127.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000

-- end of postfinger output --
I have been googling a while unable finding a solution there.


satimis
 
Old 11-06-2008, 01:21 AM   #30
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
Telnet will hang - postfix is waiting for input from you.

The safest way to get postfix to work is to add one bit at a time.

Start with a raw setup. Add TLS. Add SASL. Add virtual bits, etc. Then you will know where it stuffs up.

It's really the only way. Following a howto with different software versions is going to cause you major grief (as it is already)
 
  


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
Unable to telnet to Linux Host inspite of installing telnet-server RPM - Need Help sinamdar Linux - Software 7 04-11-2009 07:09 AM
fail to telnet localhost 106 satimis Linux - Server 7 12-16-2007 12:53 PM
sendmail:fail to connect to port 25 with telnet Carlos2dub Linux - Server 2 09-03-2007 04:09 AM
telnet - FAIL: telnet address from=15.8.29.14 gruell Linux - Software 1 06-28-2007 03:41 PM
Fail to telnet localhost 25 satimis Linux - Server 19 11-27-2006 09:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:36 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