Topic: unknown mail transport error

Hello Guys,

Firm time user of iredmail.

After fresh install i am unable to send email to internal users but can send to external email fine.

Here is an excerpt of the maillog

Jul 27 01:57:50 mail postfix/qmgr[1462]: EC808734B7: from=<xxxxx@xxxxx.local>, size=564, nrcpt=1 (queue active)
Jul 27 01:57:50 mail postfix/pipe[2149]: fatal: get_service_attr: unknown group: vmail
Jul 27 01:57:51 mail postfix/qmgr[1462]: warning: private/dovecot socket: malformed response
Jul 27 01:57:51 mail postfix/qmgr[1462]: warning: transport dovecot failure -- see a previous warning/fatal/panic logfile record for the problem description
Jul 27 01:57:51 mail postfix/master[1140]: warning: process /usr/local/libexec/postfix/pipe pid 2149 exit status 1
Jul 27 01:57:51 mail postfix/master[1140]: warning: /usr/local/libexec/postfix/pipe: bad command startup -- throttling
Jul 27 01:57:51 mail postfix/error[2150]: EC808734B7: to=<xxxxx@xxxxxx.local>, relay=none, delay=4638, delays=4637/1/0/0.01, dsn=4.3.0, status=deferred (unknown mail transport error)

It is saying that vmail is unknown group, but i can verify that there is a vmail (user/group). Appreciate any help / clue.



Re: unknown mail transport error

baidevs wrote:

Jul 27 01:57:50 mail postfix/pipe[2149]: fatal: get_service_attr: unknown group: vmail

It might be an iRedMail bug, might be not.

Some questions:
- May i know which OS and release version you're running? I see command of Postfix pipe is "/usr/local/libexec/postfix/pipe", so it's FreeBSD, right?
- Can you share output of below commands (execute as root):

# id vmail
# id -u vmail
# id -g vmail
# postconf -n


Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

3 (edited by baidevs 2011-07-27 09:29:15)

Re: unknown mail transport error

Here it is. Thanks.

# uname -a
FreeBSD mail.xxxxx.local 8.1-RELEASE FreeBSD 8.1-RELEASE

# id vmail
uid=1002(vmail) gid=102(vmail) groups=102(vmail)

# id -u vmail

# id -g vmail

# postconf -n
alias_database = hash:/usr/local/etc/postfix/aliases
alias_maps = hash:/usr/local/etc/postfix/aliases
allow_min_user = no
biff = no
bounce_queue_lifetime = 1d
broken_sasl_auth_clients = yes
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
debug_peer_level = 2
delay_warning_time = 0h
disable_vrfy_command = yes
enable_original_recipient = no
home_mailbox = Maildir/
html_directory = /usr/local/share/doc/postfix
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
mailbox_command = /usr/local/libexec/dovecot/deliver
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
maximal_backoff_time = 4000s
maximal_queue_lifetime = 1d
message_size_limit = 15728640
minimal_backoff_time = 300s
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
mydomain = xxxxx.local
myhostname = mail.xxxxx.local
mynetworks =
mynetworks_style = subnet
myorigin = mail.xxxxx.local
newaliases_path = /usr/local/bin/newaliases
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $smtpd_sender_restrictions
queue_directory = /var/spool/postfix
queue_run_delay = 300s
readme_directory = /usr/local/share/doc/postfix
recipient_bcc_maps = proxy:ldap:/usr/local/etc/postfix/ldap/recipient_bcc_maps_domain.cf, proxy:ldap:/usr/local/etc/postfix/ldap/recipient_bcc_maps_user.cf
recipient_delimiter = +
relay_domains = $mydestination, proxy:ldap:/usr/local/etc/postfix/ldap/relay_domains.cf
sample_directory = /usr/local/etc/postfix
sender_bcc_maps = proxy:ldap:/usr/local/etc/postfix/ldap/sender_bcc_maps_domain.cf, proxy:ldap:/usr/local/etc/postfix/ldap/sender_bcc_maps_user.cf
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtp_data_init_timeout = 240s
smtp_data_xfer_timeout = 600s
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_enforce_tls = no
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated, check_helo_access pcre:/usr/local/etc/postfix/helo_access.pcre
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, check_policy_service inet:, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_policy_service inet:
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = no
smtpd_sasl_local_domain =
smtpd_sasl_path = ./dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:ldap:/usr/local/etc/postfix/ldap/sender_login_maps.cf
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
smtpd_tls_CAfile = /etc/ssl/certs/iRedMail_CA.pem
smtpd_tls_cert_file = /etc/ssl/certs/iRedMail_CA.pem
smtpd_tls_key_file = /etc/ssl/private/iRedMail.key
smtpd_tls_loglevel = 0
smtpd_tls_security_level = may
tls_random_source = dev:/dev/urandom
transport_maps = proxy:ldap:/usr/local/etc/postfix/ldap/transport_maps_user.cf, proxy:ldap:/usr/local/etc/postfix/ldap/transport_maps_domain.cf
unknown_local_recipient_reject_code = 550
virtual_alias_domains =
virtual_alias_maps = proxy:ldap:/usr/local/etc/postfix/ldap/virtual_alias_maps.cf, proxy:ldap:/usr/local/etc/postfix/ldap/virtual_group_maps.cf, proxy:ldap:/usr/local/etc/postfix/ldap/sender_login_maps.cf, proxy:ldap:/usr/local/etc/postfix/ldap/catchall_maps.cf
virtual_gid_maps = static:1002
virtual_mailbox_base = /storage/vmail
virtual_mailbox_domains = proxy:ldap:/usr/local/etc/postfix/ldap/virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:ldap:/usr/local/etc/postfix/ldap/virtual_mailbox_maps.cf
virtual_minimum_uid = 1002
virtual_transport = dovecot
virtual_uid_maps = static:1002


Re: unknown mail transport error

No idea about why it happended. Sorry.
Did you try to delete both user and group 'vmail', then re-create them (with same UID/GID numbers)? I googled and found this might fix this issue.


Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee


Re: unknown mail transport error

i already did. i might have to start again from the start to see how it goes before calling it a day.

Thanks for the help.