Linode Forum
https://forum.linode.com/

Postfix/MySQL Forwarding
https://forum.linode.com/viewtopic.php?f=11&t=7266
Page 1 of 1

Author:  iWizardPro [ Fri Jun 17, 2011 2:12 am ]
Post subject:  Postfix/MySQL Forwarding

Hello, I just started setting up my website on a Linode recently. And, I am having some trouble with forwarding emails. I am following the guide located at: http://library.linode.com/email/postfix ... 0-maverick (But I am on Ubuntu 11.04.)

So the basic path of the email should be: sender@example.com (Sender) -> forwarder@example.com (Forwarder) -> recipient@othersite.com (Recipient). But, it keeps returning a 550-No Such User Here

Quote:
Jun 16 22:40:03 server postfix/smtp[12729]: 3F9333FC4F: to=<recipient@othersite.com>, orig_to=<forwarder@example.com>, relay=othersite.com[xx.xx.xx.xx]:25, delay=0.8, delays=0.14/0.01/0.56/0.09, dsn=5.0.0, status=bounced (host othersite.com[xx.xx.xx.xx] said: 550-Verification failed for <sender@example.com> 550-No Such User Here" 550 Sender verify failed (in reply to RCPT TO command))


As you can see, it is checking for the account sender@example.com which does not exist on the other server.

My current configuration of main.cf is: Website names have been changed!
Quote:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = /usr/share/doc/postfix

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = mail.example.com
mydomain = mail.example.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mail.example.com, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8, 10.8.0.0/24
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
message_size_limit = 30720000
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_relay_domains
virtual_create_maildirsize = yes
virtual_maildir_extended = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1


Thank you for your help in advance! I am really stumped at this one. Could it be the other server's fault?

Author:  iWizardPro [ Fri Jun 17, 2011 3:07 am ]
Post subject:  Solved!

I have solved this issue. The issue was caused by me moving the website from my old host to my new host. But, apparently, my domain was still registered on my old host's cPanel, so it was being handled improperly.

Thanks. (Maybe this will help others in the future.)

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/