Startseite » Forum » LiveConfig Forums (english) » Installation and usage » How to create a black hole email address?
Ergebnis 1 bis 4 von 4
  1. #1
    Erfahrener Benutzer
    Registriert seit
    09.07.2012
    Ort
    Spanien
    Beiträge
    253

    How to create a black hole email address?

    I would like to create a black hole email address. Can you do that with LiveConfig? How?

    If I would follow these instructions would LiveConfig accept a redirection to devnull ?

  2. #2
    LiveConfig-Team Avatar von kk
    Registriert seit
    10.12.2010
    Beiträge
    2.624
    No, that's not possible with LiveConfig.
    Additionaly, that doesn't make any sense and violates common standards. Just bounce unwanted messages.

  3. #3
    Erfahrener Benutzer
    Registriert seit
    10.04.2011
    Beiträge
    295
    You can do this by configuring postfix to discard mails by a specific rule (envelop sender/ recipient). This requires a manual modification of the main.cf config file.

    But as kk said: Don't do this as long as you _REALLY_ know what you're doing.

    Zitat Zitat von kk Beitrag anzeigen
    Just bounce unwanted messages.
    I think you mean rejecting the mail during the SMTP dialog instead of bouncing the mail after accepting it.

  4. #4
    Erfahrener Benutzer
    Registriert seit
    09.07.2012
    Ort
    Spanien
    Beiträge
    253
    Two use cases:

    • The typical emails automatic notification emails with no-reply@emailaddress.com. Probabably will have a reply-to header, but some user can still start using it and I just don't want to clean out the mailbox
    • A billing software like WHMCS can only associate clients with email addresses. Some clients just don't want to receive emails or don't want to give an email address. I create a unique email for them, because WHMCS cannot do without, but I don't want to see emails nor see them bounce.


    Both make sense to me and while they might be illegal in the strict sense, nobody is really bothered by this use.

    Meanwhile I found a way to create a blackhole address:

    • Add this line to /etc/aliases:
      Code:
      null: /dev/null
    • Compile the changes by running:
      Code:
      newaliases
    • Make a custom virtual alias file /etc/postfixt/virtual_alias_custom with:
      Code:
      null@existingmaildomain.com  null
    • Take care that the file permission and owner are the same as /etc/postfix/virtual_alias and then run in the /etc/postfix directory:
      Code:
      postmap virtual_alias_custom
      virtual_alias_custom.db should appear now.
    • Modify /etc/postfixt/main.cf to include this new file:
      Code:
      virtual_alias_maps = hash:/etc/postfix/virtual_alias hash:/etc/postfix/virtual_alias_custom
    • Restart Postfix

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •