Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
% 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"
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"
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
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.
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.
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
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:
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.
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.
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.
.....
.....
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.