Hi,

I am relatively new to postfix but have worked with many mail systems over the 
years and am quite familiar with various flavours of Unix/Linux. My problem is 
as follows:

I have a Centos 6.5 system running Plesk V12 on which I have selected Postfix 
as the mailing system - let’s call this Server A. All my hosted domains work 
correctly and users can send/receive mail from clients and the webmail no 
problem - so far so good!  I also have a standalone web application that uses 
Tomcat on port 8080 and part of that application sends out e-mails. Within the 
application I can set up the smtp host, smtp port, from address, auth and SSL 
details and these are configured to point to Server A using the e-mail details 
of one of the domains hosted on Server A.  If I install this application on 
Server B then everything works exactly as expected with no issues and mails are 
sent to both internal and external addresses without issue. However if I now 
install the application on server A then the e-mails are no longer sent and I 
get an error message logged in the maillog that says (anonymised): 

Sep 30 01:04:14 mailhost postfix/smtpd[4721]: E861121C9A: reject: RCPT from 
mailhost.elysiumwebservices.com[DDD.DDD.DD.DDD]: 550 5.1.1 <undefined>: 
Recipient address rejected: User unknown in virtual alias table; 
from=<nore...@hosteddomain.com> to=<undefined> proto=ESMTP 
helo=<mailhost.elysiumwebservices.com>

I have tried to debug the issue and have come to the conclusion (rightly or 
wrongly!) that it is something to do with the address rewriting and the To 
address is being replaced with nothing but when the mail is submitted to the 
server the To address is definitely there and valid. 

I have switched on verbose logging for the trivial-rewrite process and when I 
send an e-mail from nore...@hosteddomain.com to aaaaaa...@gmail.com I see the 
following output:

Sep 30 01:04:14 mailhost postfix/smtpd[4721]: connect from 
mailhost.elysiumwebservices.com[DDD.DDD.DD.DDD]
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: name_mask: all
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: inet_addr_local: 
configured 2 IPv4 addresses
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: inet_addr_local: 
configured 3 IPv6 addresses
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: process generation: 40 
(40)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: Compiled against 
Berkeley DB: 4.7.25?
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: Run-time linked against 
Berkeley DB: 4.7.25?
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: dict_open: 
hash:/var/spool/postfix/plesk/virtual
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: Compiled against 
Berkeley DB: 4.7.25?
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: Run-time linked against 
Berkeley DB: 4.7.25?
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: dict_open: 
hash:/var/spool/postfix/plesk/vmailbox
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: Compiled against 
Berkeley DB: 4.7.25?
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: Run-time linked against 
Berkeley DB: 4.7.25?
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: dict_open: 
hash:/var/spool/postfix/plesk/virtual_domains
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
relay_domains ~? debug_peer_list
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
relay_domains ~? fast_flush_domains
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
relay_domains ~? mynetworks
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
relay_domains ~? permit_mx_backup_networks
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
relay_domains ~? qmqpd_authorized_clients
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
relay_domains ~? relay_domains
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: Compiled against 
Berkeley DB: 4.7.25?
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: Run-time linked against 
Berkeley DB: 4.7.25?
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: dict_open: 
hash:/var/spool/postfix/plesk/transport
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: Compiled against 
Berkeley DB: 4.7.25?
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: Run-time linked against 
Berkeley DB: 4.7.25?
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: dict_open: 
hash:/var/spool/postfix/plesk/sdd_transport_maps
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
transport_maps ~? debug_peer_list
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
transport_maps ~? fast_flush_domains
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
transport_maps ~? mynetworks
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
transport_maps ~? permit_mx_backup_networks
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
transport_maps ~? qmqpd_authorized_clients
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
transport_maps ~? relay_domains
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
transport_maps ~? smtpd_access_maps
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_list_match: 
transport_maps: no match
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: maps_find: 
transport_maps: *: not found
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
transport_maps ~? debug_peer_list
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
transport_maps ~? fast_flush_domains
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
transport_maps ~? mynetworks
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
transport_maps ~? permit_mx_backup_networks
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
transport_maps ~? qmqpd_authorized_clients
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
transport_maps ~? relay_domains
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
transport_maps ~? smtpd_access_maps
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_list_match: 
transport_maps: no match
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: maps_find: 
address_verify_transport_maps: *: not found
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: connection established 
fd 128
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: master_notify: status 0
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: request
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
request
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute value: 
rewrite
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: rule
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
rule
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute value: 
local
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: address
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
address
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute value: 
nore...@hosteddomain.com
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: (list terminator)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
(end)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: `local' 
`nore...@hosteddomain.com' -> `nore...@hosteddomain.com'
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: send attr flags = 0
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: send attr address = 
nore...@hosteddomain.com
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: master_notify: status 1
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: master_notify: status 0
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: request
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
request
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute value: 
resolve
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: sender
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
sender
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute value: 
(end)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: address
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
address
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute value: 
nore...@hosteddomain.com
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: (list terminator)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
(end)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
hosteddomain.com ~? localhost.elysiumwebservices.com
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
hosteddomain.com ~? localhost
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
hosteddomain.com ~? localhost.localdomain
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_list_match: 
hosteddomain.com: no match
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
hosteddomain.com ~? hash:/var/spool/postfix/plesk/virtual(0,lock|fold_fix)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_list_match: 
hosteddomain.com: no match
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
hosteddomain.com ~? hash:/var/spool/postfix/plesk/vmailbox(0,lock|fold_fix)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: 
hosteddomain.com ~? 
hash:/var/spool/postfix/plesk/virtual_domains(0,lock|fold_fix)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_hostname: 
hosteddomain.com ~? localhost.elysiumwebservices.com
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_hostname: 
hosteddomain.com ~? localhost
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_hostname: 
hosteddomain.com ~? localhost.localdomain
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_list_match: 
hosteddomain.com: no match
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: maps_find: 
transport_maps: nore...@hosteddomain.com: not found
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: maps_find: 
transport_maps: hosteddomain.com: not found
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: maps_find: 
transport_maps: .com: not found
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: `' -> 
`nore...@hosteddomain.com' -> (`plesk_virtual' `hosteddomain.com' 
`nore...@hosteddomain.com' `1024')
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: send attr flags = 0
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: send attr transport = 
plesk_virtual
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: send attr nexthop = 
hosteddomain.com
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: send attr recipient = 
nore...@hosteddomain.com
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: send attr flags = 1024
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: master_notify: status 1
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: master_notify: status 0
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: request
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
request
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute value: 
rewrite
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: rule
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
rule
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute value: 
local
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: address
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
address
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute value: 
aaaaaa...@gmail.com
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: (list terminator)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
(end)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: `local' 
`aaaaaa...@gmail.com' -> `aaaaaa...@gmail.com'
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: send attr flags = 0
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: send attr address = 
aaaaaa...@gmail.com
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: master_notify: status 1
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: master_notify: status 0
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: request
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
request
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute value: 
resolve
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: sender
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
sender
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute value: 
(end)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: address
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
address
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute value: 
aaaaaa...@gmail.com
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: (list terminator)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
(end)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: gmail.com 
~? localhost.elysiumwebservices.com
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: gmail.com 
~? localhost
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: gmail.com 
~? localhost.localdomain
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_list_match: 
gmail.com: no match
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: gmail.com 
~? hash:/var/spool/postfix/plesk/virtual(0,lock|fold_fix)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_list_match: 
gmail.com: no match
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: gmail.com 
~? hash:/var/spool/postfix/plesk/vmailbox(0,lock|fold_fix)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_string: gmail.com 
~? hash:/var/spool/postfix/plesk/virtual_domains(0,lock|fold_fix)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_list_match: 
gmail.com: no match
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_hostname: 
gmail.com ~? localhost.elysiumwebservices.com
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_hostname: 
gmail.com ~? localhost
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_hostname: 
gmail.com ~? localhost.localdomain
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: match_list_match: 
gmail.com: no match
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: maps_find: 
sender_dependent_default_transport_maps: <>: not found
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: mail_addr_find: <> -> 
(not found)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: maps_find: 
transport_maps: aaaaaa...@gmail.com: not found
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: maps_find: 
transport_maps: gmail.com: not found
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: maps_find: 
transport_maps: .com: not found
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: `' -> 
`aaaaaa...@gmail.com' -> (`smtp' `gmail.com' `aaaaaa...@gmail.com' `4096')
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: send attr flags = 0
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: send attr transport = 
smtp
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: send attr nexthop = 
gmail.com
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: send attr recipient = 
aaaaaa...@gmail.com
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: send attr flags = 4096
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: master_notify: status 1
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: master_notify: status 0
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: request
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
request
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute value: 
rewrite
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: rule
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
rule
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute value: 
local
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: address
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
address
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute value: 
double-bounce
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: (list terminator)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
(end)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: `local' `double-bounce' 
-> `double-bou...@mailhost.elysiumwebservices.com'
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: send attr flags = 0
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: send attr address = 
double-bou...@mailhost.elysiumwebservices.com
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: master_notify: status 1
Sep 30 01:04:14 mailhost postfix/smtpd[4721]: E861121C9A: 
client=mailhost.elysiumwebservices.com[DDD.DDD.DD.DDD], sasl_method=LOGIN, 
sasl_username=nore...@hosteddomain.com
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: connection established 
fd 129
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: master_notify: status 0
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: request
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
request
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute value: 
rewrite
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: rule
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
rule
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute value: 
local
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: address
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
address
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute value: 
nore...@hosteddomain.com
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: (list terminator)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
(end)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: `local' 
`nore...@hosteddomain.com' -> `nore...@hosteddomain.com'
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: send attr flags = 0
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: send attr address = 
nore...@hosteddomain.com
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: master_notify: status 1
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: master_notify: status 0
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: request
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
request
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute value: 
rewrite
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: rule
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
rule
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute value: 
local
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: address
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
address
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute value: 
undefined
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: (list terminator)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
(end)
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: `local' `undefined' -> 
`undefi...@mailhost.elysiumwebservices.com'
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: send attr flags = 0
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: send attr address = 
undefi...@mailhost.elysiumwebservices.com
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: master_notify: status 1
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: master_notify: status 0
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: rewrite socket: wanted 
attribute: request
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute name: 
request
Sep 30 01:04:14 mailhost postfix/trivial-rewrite[4724]: input attribute value: 
resolve
Sep 30 01:04:14 mailhost postfix/smtpd[4721]: E861121C9A: reject: RCPT from 
mailhost.elysiumwebservices.com[DDD.DDD.DD.DDD]: 550 5.1.1 <undefined>: 
Recipient address rejected: User unknown in virtual alias table; 
from=<nore...@hosteddomain.com> to=<undefined> proto=ESMTP 
helo=<mailhost.elysiumwebservices.com>
Sep 30 01:04:14 mailhost /usr/lib64/plesk-9.0/psa-pc-remote[1330]: Message 
aborted.
Sep 30 01:04:14 mailhost postfix/smtpd[4721]: disconnect from 
mailhost.elysiumwebservices.com[DDD.DDD.DD.DDD]
Sep 30 01:04:14 mailhost /usr/lib64/plesk-9.0/psa-pc-remote[1330]: Message 
aborted.

The output from a postconf -n is:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases, hash:/var/spool/postfix/plesk/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
disable_vrfy_command = yes
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailbox_size_limit = 0
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 10240000
mydestination = localhost.$mydomain, localhost, localhost.localdomain
myhostname = mailhost.elysiumwebservices.com
mynetworks =
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.8.17/README_FILES
sample_directory = /usr/share/doc/postfix-2.8.17/samples
sender_dependent_default_transport_maps = 
hash:/var/spool/postfix/plesk/sdd_transport_maps
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_send_xforward_command = yes
smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
smtp_tls_security_level = may
smtp_use_tls = no
smtpd_authorized_xforward_hosts = 127.0.0.0/8 [::1]/128
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated
smtpd_milters = , inet:127.0.0.1:12768
smtpd_proxy_timeout = 3600s
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, 
reject_unauth_destination, check_policy_service unix:private/spfpolicy
smtpd_sasl_auth_enable = yes
smtpd_sender_restrictions = check_sender_access 
hash:/var/spool/postfix/plesk/blacklists, permit_sasl_authenticated
smtpd_timeout = 3600s
smtpd_tls_cert_file = /etc/postfix/postfix_default.pem
smtpd_tls_key_file = $smtpd_tls_cert_file
smtpd_tls_security_level = may
smtpd_use_tls = yes
transport_maps = , hash:/var/spool/postfix/plesk/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = $virtual_maps, hash:/var/spool/postfix/plesk/virtual
virtual_gid_maps = static:31
virtual_mailbox_base = /var/qmail/mailnames
virtual_mailbox_domains = $virtual_mailbox_maps, 
hash:/var/spool/postfix/plesk/virtual_domains
virtual_mailbox_limit = 0
virtual_mailbox_maps = , hash:/var/spool/postfix/plesk/vmailbox
virtual_transport = plesk_virtual
virtual_uid_maps = static:30

I would appreciate any help that anyone could offer as this is driving me 
crazy.  I can send an e-mail through this server using the exact same From and 
To addresses, the same SMTP details and the same SMTP auth credentials but only 
if I use a remote client, as soon as I try to send it from the localhost then 
it all falls down.

Many thanks
Steve

Reply via email to