Mail disable receiving = no sending

Discussion in 'Installation/Configuration' started by slapstick, Dec 23, 2020.

  1. slapstick

    slapstick New Member

    Hey,
    I wonder why I'm not able to send mails with a mail account when I disable receiving.
    Log says "Sender address rejected: User unknown in virtual mailbox table" if I try to send an email.
    Anyone has a quick workaround?

    Thanks
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    I think that when disabling receiving, you disable sending aswell, as it disables the mailbox for all of postfix.

    @Jesse Norell knows everything about this though, maybe he can tell you more.
     
  3. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    To make it so you can only send, disable delivery, not receiving; the latter has that effect due to how it's implemented.
     
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Maybe we should change the label?
    "Disable SMTP"
     
  5. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Possibly labels could be changed for clarification (or add tooltips), but 'Disable SMTP' would be confusing wording behind the scenes, as the 'Disable sending' option controls a database field named 'disablesmtp'.

    'Enable receiving' controls the 'postfix' field, which sets whether a mailbox will appear in virtual_mailbox_maps or virtual_alias_maps, which are the lists of valid addresses that postfix knows about. It used to simultaneously control the 'disabledeliver' setting, but that is now separate (since forwarding in postfix rather than in sieve requires 'postfix' to be 'y', but you still might not want to allow delivery). Not sure what the best label(s) would be.
     

Share This Page