Topic: Cannot send mail from iRedMail server to other domains except itself
I'm stuck at something that bothers me a few weeks now.
I successfully installed server with 2 domains and emails are coming in ok,
But whenever the user tries to send from Roundcube webmail to some other person (let's say to any domain you can imagine - gmail.com, yahoo.com etc.) the mail cannot be sent.
The error log says (I replaced SERVERNAME and servername.fqdn.com for my reasons not exposing real domain name and server):
May 24 14:21:56 SERVERNAME roundcube: [24-May-2010 14:21:56 +0200]: Successful login for email@example.com (id 2) from 192.168.0.254 May 24 14:22:07 SERVERNAME postfix/smtpd: connect from servername.fqdn.com[127.0.0.1] May 24 14:22:07 SERVERNAME postfix/smtpd: NOQUEUE: reject: RCPT from servername.fqdn.com[127.0.0.1]: 550 5.1.1 <firstname.lastname@example.org>: Recipient address rejected: User unknown in virtual mailbox table; from=<email@example.com > to=<firstname.lastname@example.org> proto=ESMTP helo=<servername.fqdn.com> May 24 14:22:07 SERVERNAME roundcube: Invalid response code received from server (550): May 24 14:22:07 SERVERNAME postfix/smtpd: disconnect from servername.fqdn.com[127.0.0.1] May 24 14:22:07 SERVERNAME roundcube: [24-May-2010 14:22:07 +0200] SMTP Error: SMTP error: Failed to add recipient 'email@example.com' in /var/www/roundcubemail-0.2.1/program/steps/mail/func.inc on line 1296 (POST /mail/?_task=mail&_action=send)
Also as I'm administrator/root I can't send mail from SSH terminal session with same error.
My /etc/hosts :
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.0.14 servername.fqdn.com SERVERNAME
Please help me with this, because I need to be able to send emails outside (some aliases must be redirected to gmail.com) and it doesn't work the way I wanted.
If needed I will post other config. files.
Get fast and professional support from iRedMail developers: