postfix problem / domain as fqdn

hi @all,

i installed virtualmin without getting any errors on a fresh etch.
also the creating of the main virtual server made no probs, sending emails via usermin works too.
but receiving mails doesn’t work because the messages are stored in the queue of postfix and bounced after timeout.
the messages in the queue are in the format user@fqdn and not user@sld.tld .
what can i do to solve it?

thx
mom

Your hostname is probably not correctly configured.

But, I would need to see actual error messages from the log. Just saying, “receiving mails doesn’t work” is not a very good problem description. :wink:

problem solved!

insert to /etc/procmailrc :

DROPPRIVS=yes

that works;-)

regards
mom

hi Joe,

here some information about the system:

[code:1][/code:1]
v10:~# cat /proc/version
Linux version 2.6.18-6-xen-vserver-amd64 (Debian 2.6.18.dfsg.1-24) (dannf@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Thu Dec 25 22:49:16 UTC 2008
v10:~#
v10:~#
v10:~# hostname -f
v10.virtualmin.com
v10:~#
v10:~#
v10:~# host v10.virtualmin.com
v10.virtualmin.com does not exist, try again
v10:~#
v10:~#
v10:~# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
home_mailbox = Maildir/
inet_interfaces = all
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
mailbox_size_limit = 0
mydestination = v10.virtualmin.com, localhost.virtualmin.com, , localhost
myhostname = v10.virtualmin.com
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
recipient_delimiter = +
relayhost =
sender_bcc_maps = hash:/etc/postfix/bcc
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_maps = hash:/etc/postfix/virtual
v10:~#

mail.log:

[code:1][/code:1]
Feb 14 10:38:21 v10 postfix/smtpd[13874]: connect from mail.gmx.net[213.165.64.20]
Feb 14 10:38:21 v10 postfix/smtpd[13874]: 86E181880DB: client=mail.gmx.net[213.165.64.20]
Feb 14 10:38:21 v10 postfix/cleanup[13878]: 86E181880DB: message-id=<20090214093820.236430@gmx.net>
Feb 14 10:38:21 v10 postfix/smtpd[13874]: disconnect from mail.gmx.net[213.165.64.20]
Feb 14 10:38:21 v10 postfix/qmgr[1664]: 86E181880DB: from=<flyingcrow@gmx.de>, size=1040, nrcpt=1 (queue active)
Feb 14 10:41:41 v10 postfix/anvil[13876]: statistics: max connection rate 1/60s for (smtp:213.165.64.20) at Feb 14 10:38:21
Feb 14 10:41:41 v10 postfix/anvil[13876]: statistics: max connection count 1 for (smtp:213.165.64.20) at Feb 14 10:38:21
Feb 14 10:41:41 v10 postfix/anvil[13876]: statistics: max cache size 1 at Feb 14 10:38:21

thx for any hint!

hi Joe,

here some information about the system:

[code:1][/code:1]
v10:~# cat /proc/version
Linux version 2.6.18-6-xen-vserver-amd64 (Debian 2.6.18.dfsg.1-24) (dannf@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Thu Dec 25 22:49:16 UTC 2008
v10:~#
v10:~#
v10:~# hostname -f
v10.virtualmin.com
v10:~#
v10:~#
v10:~# host v10.virtualmin.com
v10.virtualmin.com does not exist, try again
v10:~#
v10:~#
v10:~# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
home_mailbox = Maildir/
inet_interfaces = all
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
mailbox_size_limit = 0
mydestination = v10.virtualmin.com, localhost.virtualmin.com, , localhost
myhostname = v10.virtualmin.com
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
recipient_delimiter = +
relayhost =
sender_bcc_maps = hash:/etc/postfix/bcc
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_maps = hash:/etc/postfix/virtual
v10:~#

mail.log:

[code:1][/code:1]
Feb 14 10:38:21 v10 postfix/smtpd[13874]: connect from mail.gmx.net[213.165.64.20]
Feb 14 10:38:21 v10 postfix/smtpd[13874]: 86E181880DB: client=mail.gmx.net[213.165.64.20]
Feb 14 10:38:21 v10 postfix/cleanup[13878]: 86E181880DB: message-id=<20090214093820.236430@gmx.net>
Feb 14 10:38:21 v10 postfix/smtpd[13874]: disconnect from mail.gmx.net[213.165.64.20]
Feb 14 10:38:21 v10 postfix/qmgr[1664]: 86E181880DB: from=<flyingcrow@gmx.de>, size=1040, nrcpt=1 (queue active)
Feb 14 10:41:41 v10 postfix/anvil[13876]: statistics: max connection rate 1/60s for (smtp:213.165.64.20) at Feb 14 10:38:21
Feb 14 10:41:41 v10 postfix/anvil[13876]: statistics: max connection count 1 for (smtp:213.165.64.20) at Feb 14 10:38:21
Feb 14 10:41:41 v10 postfix/anvil[13876]: statistics: max cache size 1 at Feb 14 10:38:21

thx for any hint!

the complete mail.log after bounce:

[code:1][/code:1]Feb 14 10:38:21 v10 postfix/smtpd[13874]: connect from mail.gmx.net[213.165.64.20]
Feb 14 10:38:21 v10 postfix/smtpd[13874]: 86E181880DB: client=mail.gmx.net[213.165.64.20]
Feb 14 10:38:21 v10 postfix/cleanup[13878]: 86E181880DB: message-id=<20090214093820.236430@gmx.net>
Feb 14 10:38:21 v10 postfix/smtpd[13874]: disconnect from mail.gmx.net[213.165.64.20]
Feb 14 10:38:21 v10 postfix/qmgr[1664]: 86E181880DB: from=<flyingcrow@gmx.de>, size=1040, nrcpt=1 (queue active)
Feb 14 10:41:41 v10 postfix/anvil[13876]: statistics: max connection rate 1/60s for (smtp:213.165.64.20) at Feb 14 10:38:21
Feb 14 10:41:41 v10 postfix/anvil[13876]: statistics: max connection count 1 for (smtp:213.165.64.20) at Feb 14 10:38:21
Feb 14 10:41:41 v10 postfix/anvil[13876]: statistics: max cache size 1 at Feb 14 10:38:21
Feb 14 11:11:06 v10 postfix/local[13879]: warning: pipe_command_read: read time limit exceeded
Feb 14 11:11:06 v10 postfix/local[13879]: 86E181880DB: to=<maxxdomain@v10.virtualmin.com>, orig_to=<maxxdomain@maxxdomain.de>, relay=local, delay=1966, delays=0.15/0.02/0/1965, dsn=5.3.0, status=bounced (Command time limit exceeded: "/usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME". Command output: procmail: Timeout, terminating "/etc/webmin/virtual-server/clam-wrapper.pl" procmail: Program failure (-15) of "/etc/webmin/virtual-server/clam-wrapper.pl" )
Feb 14 11:11:07 v10 postfix/cleanup[14963]: 101971880DE: message-id=<20090214101107.101971880DE@v10.virtualmin.com>
Feb 14 11:11:07 v10 postfix/bounce[14962]: 86E181880DB: sender non-delivery notification: 101971880DE
Feb 14 11:11:07 v10 postfix/qmgr[1664]: 101971880DE: from=<>, size=3327, nrcpt=1 (queue active)
Feb 14 11:11:07 v10 postfix/qmgr[1664]: 86E181880DB: removed
Feb 14 11:11:08 v10 postfix/smtp[14965]: 101971880DE: to=<flyingcrow@gmx.de>, relay=mx0.gmx.de[213.165.64.100]:25, delay=1.1, delays=0.07/0.01/0.58/0.39, dsn=2.6.0, status=sent (250 2.6.0 Message accepted {mx088})
Feb 14 11:11:08 v10 postfix/qmgr[1664]: 101971880DE: removed