1

Topic: Alias in virtual domain

==== Provide required information to help troubleshoot and get quick answer ====
- Scientific Linux release 6.1 (Carbon)
- iRedMail-0.7.4 LDAP
====
Hello!
I followed by this instruction for creating an alias: http://www.iredmail.org/wiki/index.php? … pLDAPadmin
but when I'm sending the mail I get next message:
'SMTP Error (550): Unable to add recipient "alias0@vdomain.tld" (5.1.1 <alias0@vdomain.tld>: Recipient address rejected: User unknown in virtual mailbox table)'
In /var/log/maillog:
Mar  1 09:09:57 zm postfix/smtpd[2426]: NOQUEUE: reject: RCPT from hostname.domain.tld[127.0.0.1]: 550 5.1.1 <alias0@vdomain.tld>: Recipient address rejected: User unknown in virtual mailbox table; from=<username@vdomain.tld> to=<alias0@vdomain.tld> proto=ESMTP helo=<192.168.0.171>
Mar  1 09:09:57 hostname roundcube: Invalid response code received from server (550):
Mar  1 09:09:57 hostname roundcube: SMTP Error: SMTP error: Failed to add recipient 'alias0@vdomain.tld' in /var/www/roundcubemail-0.7/program/include/main.inc on line 1745 (POST /mail/?_unlock=loading1330578169930&_lang=undefined?_task=mail&_action=send)

Thank you

2

Re: Alias in virtual domain

Could you please paste LDIF data of this newly created alias account?

3

Re: Alias in virtual domain

ZhangHuangbin wrote:

Could you please paste LDIF data of this newly created alias account?

# Export LDIF for mail=alias0@vdomain.tld,ou=Aliases,domainName=vdomain.tld,o=domains,dc=vdomain,dc=tld
# Server: My LDAP Server (127.0.0.1)
# Область поиска: base
# Фильтр поиска: (objectClass=*)
# Всего записей: 1
#
# Generated by phpLDAPadmin (http://phpldapadmin.sourceforge.net) on March 1, 2012 3:44 pm
# Version: 1.2.2

version: 1

# Record 1: mail=alias0@vdomain.tld,ou=Aliases,domainName=vdomain.tld,o=d...
dn: mail=alias0@vdomain.tld,ou=Aliases,domainName=vdomain.tld,o=domains,dc=vdomain,d
c=tld
accountstatus: active
cn: Alias0
enabledservice: mail, deliver
mail: alias0@vdomain.tld
mailforwardingaddress: username@vdomain.tld
objectclass: mailAlias
objectclass: top

4

Re: Alias in virtual domain

varchar wrote:

enabledservice: mail, deliver

Please remove this one, and add below two:

enabledService: mail
enabledServoce: deliver

5

Re: Alias in virtual domain

ZhangHuangbin wrote:
varchar wrote:

enabledservice: mail, deliver

Please remove this one, and add below two:

enabledService: mail
enabledServoce: deliver

Thanks. It works. smile