Problem with sending mails when account is set to Alias-Mail-Forward

  • Hello,


    i have a problem with i-MSCP 1.2.9.
    When i create an Alieas-Mail as Normal without forwarding everything is fine.
    But when i change the Mail type from Normal to Normal+Forward i can't send mails anymore.
    I get an SMTP-Error 553 5.7.1:
    5.7.1 <[email protected]>: Sender address rejected: not owned by user [email protected]


    Am i missing something?
    Don't have this problem on any other Server.


    Thanks in advance

  • Yes i do:


    Code
    1. smtpd_sender_login_maps = mysql:/etc/postfix/imscp/allowedSenders.cf, mysql:/etc/postfix/imscp/allowedAliasses.cf, mysql:/etc/postfix/imscp/allowedCatchalls.cf



    This is the first file: /etc/postfix/imscp/allowedSenders.cf


    Code
    1. hosts = 127.0.0.1user = postfixpassword = [password]dbname = imscpquery = SELECT `mail_addr` FROM `mail_users` WHERE `mail_addr` = '%s' AND `mail_forward` = '_no_';


    This is the second file: /etc/postfix/imscp/allowedAliases.cf


    Code
    1. hosts = 127.0.0.1user = postfixpassword = [password]dbname = imscpquery = SELECT `mail_forward` FROM `mail_users` WHERE `mail_addr` = '%s';


    This is the third file: /etc/postfix/imscp/allowedCatchalls.cf

    Code
    1. hosts = 127.0.0.1
    2. user = postfix
    3. password = [password]
    4. dbname = imscp
    5. query = SELECT `mail_acc` FROM `mail_users` WHERE `mail_addr` = CONCAT('@', SUBSTRING_INDEX('%s','@',-1));
  • In your first file "/etc/postfix/imscp/allowedSenders.cf" your search for

    Code
    1. "mail_forward = _no_"


    but when you chance to Normal+Forward in table "mail_user" is a E-Mail Adress in "mail_addr" and "mail_forward".



    I think you have to chance this in



    Code
    1. "mail_forward != _no_"

    But attanchen by "mail_forward" how is forward to more then one Adress, because thats separat by a ",".



    I have written a listener to this and also considered alias and subdomain.
    So if you want i can upload this when i come back a home.