Problem wtih virtual domain mailboxes receiving external mail

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem wtih virtual domain mailboxes receiving external mail

James Eastman
Greetings:
 
I have installed a new Postfix-with-mysql-driving-virtual-hosts PostFix install and I'm having some small troubles with my virtual mail accounts receiving email from outside MTAs.  My virtual domaisn on teh box can send mail to each other and users ina virtual domain can send mail to each other.  The mail accounts, however, can't receive email from outside domains.  They can send email just fine and are able to auth using SMTP AUTH via DoveCot SASL.  The problem arises when an external email account from an EXTERNAL domain tries to reply to one of their emails OR if an external account tries to send one of the virtual domain email boxes an email.  When this happens the external sender of the email gets an "undeliverable" message along the lines of ->
 
Your message did not reach some or all of the intended recipients.
Subject: RE: Hellop
Sent: 5/19/2008 1:57 PM
The following recipient(s) could not be reached:
[hidden email] on 5/19/2008 1:57 PM
The e-mail system was unable to deliver the message, but did not report a specific reason. Check the address and try again. If it still fails, contact your system administrator.
< xm15.<SENDING DOMAIN>.com #5.0.0 X-Symantec-Mail-Security; host mail.tripleaser.com[209.151.108.157] said: 554 5.7.1 [hidden email]
 
In the past this meant that my main.cf element smtpd_recipient_restrictions was wrong.  So I monkeyed with this for a while but to no avail.  Incidentally when this "undeliverable" state happens I don't see anything in /var/log/mail.log or /var/log/mail.info or /var/log/mail.error saying what might have happened or if the external sender's MTA made a connection to my virtaul domains MTA.  
 
Here's my postconf -n ->
 
alias_maps = hash:/usr/local/mailman/data/aliases, hash:/etc/mail/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
disable_vrfy_command = yes
home_mailbox = .maildir/
html_directory = /usr/share/doc/postfix-2.4.6-r2/html
inet_interfaces = all
mail_owner = postfix
mailbox_size_limit = 0
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
message_size_limit = 20480000
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain, www.$mydomain, ftp.$mydomain, $transport_maps
mydomain = amigostecnicos.net
myhostname = ns4.amigostecnicos.net
mynetworks = 127.0.0.0/8, 209.151.108.144/28
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases
owner_request_special = no
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps  $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains  $relay_rec
ipient_maps $relay_domains $canonical_maps $sender_canonical_maps  $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.4.6-r2/readme
recipient_delimiter = +
relay_domains = $mydestination, $virtual_mailbox_domains
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
show_user_unknown_table_name = no
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_etrn_restrictions = reject
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination,check_policy_service unix:private/policy
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_exceptions_networks = $mynetworks
smtpd_sasl_local_domain =
smtpd_sasl_path = /var/spool/postfix/private/auth-client
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = check_sender_mx_access cidr:/etc/postfix/bogus_mx, permit_mynetworks, permit_sasl_authenticated, reject_sender_login_mismatch
smtpd_tls_cert_file = /etc/ssl/certs/dovecot.pem
smtpd_tls_key_file = /etc/ssl/private/dovecot.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
transport_maps = proxy:mysql:$config_directory/mysql_virtual_domain_transport_maps.cf
unknown_local_recipient_reject_code = 450virtual_mailbox_base = /home/vmail/domains
virtual_mailbox_domains = proxy:mysql:$config_directory/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 51200000
virtual_mailbox_maps = proxy:mysql:$config_directory/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 1003
virtual_transport = dovecot
virtual_uid_maps = static:1003
virtual_alias_maps = hash:/usr/local/mailman/data/virtual-mailman,proxy:mysql:$config_directory/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:1001
 
 
As well here's my master.cf ->
 
#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       n       -       -       smtpd -v
#submission inet n       -       n       -       -       smtpd
#  -o smtpd_enforce_tls=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
smtps     inet  n       -       n       -       -       smtpd -v
  -o smtpd_tls_wrappermode=yes
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#628      inet  n       -       n       -       -       qmqpd
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       n       300     1       oqmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       n       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       n       -       -       smtp
        -o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
retry     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
scache    unix  -       -       n       -       1       scache
dovecot   unix  -       n       n       -       -       pipe
    flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -d ${recipient}
policy  unix  -       n       n       -       -       spawn
        user=nobody argv=/usr/bin/perl /usr/lib/postfix/policyd-spf-perl
 
 
Any help is greatly appreciated.
 
airspecialty
 


Keep your kids safer online with Windows Live Family Safety. Help protect your kids.
Reply | Threaded
Open this post in threaded view
|

Re: Problem wtih virtual domain mailboxes receiving external mail

Dan Farrell
On Mon, 19 May 2008 14:45:48 -0500
James Eastman <[hidden email]> wrote:

>
> Greetings:
>  
And to you.  In case it escaped your notice, your config files were too
garbled for anyone to examine.  Please paste them again, preserving
newlines, so that we can see what's going on.  

thanks.  
Reply | Threaded
Open this post in threaded view
|

RE: Problem wtih virtual domain mailboxes receiving external mail

James Eastman
Dan:

AS it turned out I found my problem(s).  Since  I am doing virtual hosts with MySQL controlling that virtual info the SQL has to be right or what comes back won't make much sense ..... kinda like my garbled config files.  Thx for the response.

airspecialty

> Date: Sat, 24 May 2008 17:32:46 -0500
> From: [hidden email]
> To: [hidden email]
> Subject: Re: Problem wtih virtual domain mailboxes receiving external mail
>
> On Mon, 19 May 2008 14:45:48 -0500
> James Eastman <[hidden email]> wrote:
>
> >
> > Greetings:
> >
> And to you. In case it escaped your notice, your config files were too
> garbled for anyone to examine. Please paste them again, preserving
> newlines, so that we can see what's going on.
>
> thanks.


Make every e-mail and IM count. <a href='http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ MakeCount' target='_new'>Join the i’m Initiative from Microsoft.