undeliverable mail to my own system

Discussion in 'Server Operation' started by Ovidiu, Mar 7, 2006.

  1. Ovidiu

    Ovidiu Active Member

    I send an email to one of my domains and it comes back with these errors:

    and here is more details:

    why does it try to deliver to debian@.... ? you see the original recipient was ovidiu@pacura.ru...
    btw. this is the main email address of this user, its not an alias...
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please check /etc/postfix/virtusertable and your postfix alias file.
     
  3. Ovidiu

    Ovidiu Active Member

    I checked the virtualuser table and indeed there was a loop.

    I have the following settings inside ispcfg panel:

    ovidiu@pacura.ru is being forwarded to postmaster@web-designerz.de
    ovidiu also has the following aliases: abuse, webmaster and admin.

    BUT inside the virtualuser table all these were not forwarded to postmaster@web-designerz.de but to postmaster => resulting in a loop.

    Can't I have this forwarded like I wanted to postmaster@web-designerz.de ?

    And if I can why is this setting not correctly written to the virtualuser table?

    besides that I looked inside /etc/aliases - all users were forwarded to root and root was forwarded to debian, so I would like to make a forward from debian to postmaster@web-designerz.de which is the central email address on this system.... can I just insert: debian: postmaster@web-designerz.de ? or do I have to insert debian: web1_postmaster ?
     
    Last edited: Mar 7, 2006
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The alis table is not managed by ISPConfig and its better to not use it at this may cause these problems you currently encounter.

    Have you disabled username prefixes? Then you must have created an user named postmaster in the website web-designerz.de.

    The username postmaster and the part "postmaster@" in an email address are independant. They can be the same when you disabled username prefixes, but they must not be the same.
     
  5. Ovidiu

    Ovidiu Active Member

    well I only want mail going to root not to disappear so what do I insert into aliases so root points to webmaster@web-designerz.de this email address or just root: web1_postmaster ?

    next thing: I did not diable prefixes, I just asked if I can set a forward to postmaster@web-designerz.de inside ispcfg panel or do I have to use web1_postmaster which means I cannot forward to external email addresses for instance.

    I tried forwarding inside ispcfg panel to postmaster@web-designerz.de but inside the virtualusertabel I see that ovidiu@pacura.ru is being forwarded to web6_postmaster which is an alias for ovidiu@pacura.ru so there is a loop...
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Use
    Code:
    root: web1_postmaster
    (and run
    Code:
    newaliases
    afterwards).

    No, you must use email addresses in the forward field.

    Do you have
    Code:
    web6_postmaster: ovidiu@pacura.ru
    in /etc/aliases? Remove it!
     
  7. Ovidiu

    Ovidiu Active Member

    ok, alls fine now except for this:

    this is inside the virtualusertable although ovidiu@pacura.ru is set to be forwarded to postmaster@web-designerz.de which coresponds to web1_postmaster... WHY? and how to change this? delete the forward and set it again?

    But now mails get into my inbox (mind that I am talking about the inbox of postmaster@web-designerz.de) ... ? here is a header from a mail I just sent to myself:

     
    Last edited: Mar 8, 2006
  8. falko

    falko Super Moderator ISPConfig Developer

    Please post the contents of /etc/postfix/virtusertable and /etc/aliases.
     
  9. Ovidiu

    Ovidiu Active Member

    although it seems to work atm - ?
     
  10. falko

    falko Super Moderator ISPConfig Developer

  11. Ovidiu

    Ovidiu Active Member

    we agree that these are all relevant entries for this domain?

    so all mail to these users goes to web6_postmaster and web6_postmaster@pacura.ru goes to web6_postmaster !?

    is this not a loop? Inside ispcfg panel I entered postmaster@web-designerz.de which is web1_postmaster as the target address for forwarding all mails of postmaster@pacura.ru and mails do arrive there, but this looked like a loop to me.
     
  12. falko

    falko Super Moderator ISPConfig Developer

  13. Ovidiu

    Ovidiu Active Member

  14. falko

    falko Super Moderator ISPConfig Developer

    It will go directly to web6_postmaster's mailbox, because Postfix can't find the address in /etc/postfix/virtusertable and therefore tries to find a system user named web6_postmaster.

    If you want mails for web6_postmaster to be forwarded to web1_postmaster, you can do that with the forward field in ISPConfig, or you use /etc/aliases.
     
  15. Ovidiu

    Ovidiu Active Member

    thats exactly what I have been asking the whole time :) does it work if I insert postmaster@web-designerz.de (which is the email address of web1_postmaster) into the forward field (for ovidiu@pacura.ru which is web6_postmaster) in ispconfig or do I have to enter web1_postmaster ?
     
  16. falko

    falko Super Moderator ISPConfig Developer

  17. Ovidiu

    Ovidiu Active Member

    yes, but the results posted above by me are the results after entering postmaster@web-designerz.de !? shouldn't I see a result there different than what I posted above?
     
  18. falko

    falko Super Moderator ISPConfig Developer

    The forward is done using procmail recipes. Have a look at the procmail recipes in web6_postmaster's homedir.
     
  19. Ovidiu

    Ovidiu Active Member

    ahhh there is a .forward file :-[ I am enlightened now, I did just not understand what was going on there .... thx a lot for the patience
     

Share This Page