SYSTEM WARNING: 'file_get_contents(https://www.clearos.com/?rendertype=json&get=header): failed to open stream: Connection refused' in '/var/www/virtual/newwrapper/cf_topmenu.inc' line 5

ClearOS Bug Tracker


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000926ClearOSapp-smtp - SMTP Serverpublic2013-01-09 06:522013-01-29 13:20
Reportertimb80 
Assigned Touser2 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version6.3.0 
Target Version6.3.0 UpdatesFixed in Version6.3.0 Updates 
Summary0000926: Mail forward domains should not be added to searchdomains list for zarafa-alias lookup
DescriptionAs described here
http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,14/func,view/id,45297/limit,10/limitstart,10/#49429 [^]

Steps To ReproduceMail Forwarding domains are not meant to be delivered locally, and should not be added to the searchdomains list, to enumerate aliases

alias1@mydestinationdomain.com is OK
alias1@myforwardingdomain.com should not be added

At present email sent to alias1@myforwardingdomain.com goes to alias1@mydesintationdomain.com (local user mailbox)
TagsNo tags attached.
Attached Files

- Relationships
related to 0000689closeduser2 Add a hash file of local domains in order support mail alias lookups 

-  Notes
(0000628)
timb80 (developer)
2013-01-09 07:05
edited on: 2013-01-09 07:07

Forwarded domains should not be part of get_local_domains... (only seems to be used for updating search domains)
/usr/clearos/apps/smtp/libraries/Postfix.php

    /**
     * Returns local domains.
     *
     * Local domains include:
     * - primary domain (mydomain)
     * - destination domains (mydestination)
     * - forwarder domains (/etc/postfix/transport)
     *
     * @return array list of local domains
     * @throws Engine_Exception
     */

    public function get_local_domains()
    {
        clearos_profile(__METHOD__, __LINE__);

        $domains = array();

        // Primary domain
        $domains[] = $this->get_domain();

        // Destination domains
        $domains = array_merge($this->get_destinations(TRUE), $domains);

---- // Forwarder domains
---- $forwarders = $this->get_forwarders();

---- foreach ($forwarders as $id => $details)
---- $domains[] = $details['domain'];

        return $domains;
    }

(0000629)
user2
2013-01-09 12:06
edited on: 2013-01-09 12:06

The Amavis engine uses Postfix.get_local_domains() to populate the @local_domains_maps parameter. So, I created another method -- get_delivery_domains() -- which only includes the primary domain and destination domains.


- Issue History
Date Modified Username Field Change
2013-01-09 06:52 timb80 New Issue
2013-01-09 06:53 timb80 Relationship added related to 0000689
2013-01-09 07:05 timb80 Note Added: 0000628
2013-01-09 07:06 timb80 Note Edited: 0000628 View Revisions
2013-01-09 07:07 timb80 Note Edited: 0000628 View Revisions
2013-01-09 08:30 user2 Assigned To => user2
2013-01-09 08:30 user2 Status new => confirmed
2013-01-09 12:06 user2 Note Added: 0000629
2013-01-09 12:06 user2 Target Version => 6.3.0 Updates
2013-01-09 12:06 user2 Note Edited: 0000629 View Revisions
2013-01-09 12:08 user2 Status confirmed => resolved
2013-01-09 12:08 user2 Fixed in Version => 6.3.0 Updates
2013-01-09 12:08 user2 Resolution open => fixed
2013-01-29 13:20 user2 Status resolved => closed

SYSTEM WARNING: 'file_get_contents(https://www.clearos.com/?rendertype=json&get=footer): failed to open stream: Connection refused' in '/var/www/virtual/newwrapper/cf_footer.inc' line 7