I've got some serious trouble with postfix.
What I'm trying to do:
Postfix with SMTP-Autentifcation, Multidomain, accepting from every IP.
My Setup: rootDS account with [netclusive], running Fedora Core 4.
After using a howto from the HowToForge, which got me nowhere, I started looking for another one, that was easier to understand:
http://www.pl-forum.de/berichte/postfix-smtp-auth.html
I didn't use the installation as suggested, though. I installed the rpms with yum.
But I used the config as suggested, which is:
main.cf:
----------
Code: Select all
# The queue_directory specifies the location of the Postfix queue.
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
daemon_directory = /usr/libexec/postfix
# The mail_owner parameter specifies the owner of the Postfix queue
# and of most Postfix daemon processes. Specify the name of a user
# account THAT DOES NOT SHARE ITS USER OR GROUP ID WITH OTHER ACCOUNTS
# AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM.
mail_owner = postfix
# The myhostname parameter specifies the internet hostname of this
# mail system.
myhostname = mail.sportreferat.at
# The mydomain parameter specifies the local internet domain name.
mydomain = sportreferat.at
# The myorigin parameter specifies the domain that locally-posted
# mail appears to come from.
myorigin = $mydomain
# The inet_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on.
inet_interfaces = $myhostname
# inet_interfaces = all # Wenn der Mailserver für mehrere Domains
#zuständig sein soll
# The mydestination parameter specifies the list of domains that this
# machine considers itself the final destination for.
mydestination = $myhostname, localhost.$mydomain, $mydomain
# The mynetworks parameter specifies the list of "trusted"
#SMTP
# clients that have more privileges than "strangers".
#
# In particular, "trusted" SMTP clients are allowed to relay
#mail
# through Postfix.
# Hier kann man dann auch um das interne Netzwerk erweitern.
# So wie es hier ist braucht jeder Client ein Passwort. Ist aber gut zum
#Testen.
# Du kannst auch noch etwas wie 192.168.40.0/24 einfügen. Dann dürfen alle
#Rechner
#aus
# diesem Netzwerk auch Mails ohne Passwort versenden.
mynetworks = 127.0.0.0/8
# The relay_domains parameter restricts what clients this mail system
# will relay mail from, or what destinations this system will relay
# mail to.
relay_domains = $mydomain
# Erlaube sasl-authentifizierte Clients, die aus mynetworks und die aus
#relay_domains
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, check_relay_domains
# The alias_maps parameter specifies the list of alias databases used
# by the local delivery agent.
alias_maps = hash:/etc/postfix/aliases
debug_peer_level = 2
debugger_command =
PATH=/usr/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
# sendmail_path: The full pathname of the Postfix sendmail command.
sendmail_path = /usr/sbin/sendmail.postfix
# newaliases_path: The full pathname of the Postfix newaliases command.
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.
setgid_group = postdrop
# 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.
sample_directory = /etc/postfix/samples
# readme_directory: The location of the Postfix README files.
readme_directory = /etc/postfix/readme
best_mx_transport = local
# SASL SUPPORT FOR CLIENT
#
# The following options set parameters needed by Postfix to enable
# Cyrus-SASL support for authentication of mailclients.
#
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
The master.cf is as follows:
Code: Select all
#
# Postfix master process configuration file. For details on the format
# of the file, see the Postfix master(5) manual page.
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd -v
#submission inet n - n - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
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
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
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
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
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
Postfix is running, though:
Code: Select all
[root@v985 stefan]# ps aux | grep postfix
root 5968 0.0 0.3 17828 6600 ? S 15:15 0:00 /usr/libexec/webmin/postfix/index.cgi
root 6032 0.0 0.3 17824 6560 ? S 15:16 0:00 /usr/libexec/webmin/postfix/index.cgi
root 7372 0.0 0.2 17828 5344 ? S 15:20 0:00 /usr/libexec/webmin/postfix/index.cgi
root 7660 0.0 0.3 17832 7048 ? S 15:21 0:00 /usr/libexec/webmin/postfix/index.cgi
root 7697 0.0 0.2 17832 5724 ? S 15:22 0:00 /usr/libexec/webmin/postfix/index.cgi
root 11671 0.0 0.0 5584 1720 ? Ss 15:37 0:00 /usr/libexec/postfix/master
postfix 11675 0.0 0.0 5636 1592 ? S 15:37 0:00 pickup -l -t fifo -u
postfix 11676 0.0 0.0 5688 1532 ? S 15:37 0:00 qmgr -l -t fifo -u
postfix 14330 0.0 0.0 5592 1480 ? S 15:40 0:00 proxymap -t unix -u