[GH-ISSUE #47] Can't add an localhost alias #42

Closed
opened 2026-02-26 09:35:22 +03:00 by kerem · 4 comments
Owner

Originally created by @hempalex on GitHub (Aug 19, 2013).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/47

Postfix mydestination is:

mydestination = $myhostname, localhost.$mydomain, localhost

But i can't add a local address e.g. test@localhost (used to mail2news gateway)

Originally created by @hempalex on GitHub (Aug 19, 2013). Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/47 Postfix mydestination is: > mydestination = $myhostname, localhost.$mydomain, localhost But i can't add a local address e.g. test@localhost (used to mail2news gateway)
kerem closed this issue 2026-02-26 09:35:22 +03:00
Author
Owner

@barryo commented on GitHub (Sep 10, 2013):

This is not a ViMbAdmin issue.

I suspect if you add test to your /etc/aliases file and run newaliaes you're problem will be solved.

<!-- gh-comment-id:24148686 --> @barryo commented on GitHub (Sep 10, 2013): This is not a ViMbAdmin issue. I suspect if you add `test` to your `/etc/aliases` file and run `newaliaes` you're problem will be solved.
Author
Owner

@hempalex commented on GitHub (Sep 10, 2013):

i have virtual domain - domain.com

i wont to make a "group" of users, recieving some email, but this email also need to be send to system alias.

in postfix virtual aliases:
group@domain.com: user1@domain.com, user2@domain.com, group@localhost

/etc/aliases:
group: |/usr/local/bin/mail2news.pl some-newsgroup

But in ViMbAdmin i can't add this address - group@localhost

Anyway - group@localhost is correct email, problem is in email address checking

<!-- gh-comment-id:24149149 --> @hempalex commented on GitHub (Sep 10, 2013): i have virtual domain - domain.com i wont to make a "group" of users, recieving some email, but this email also need to be send to system alias. in postfix virtual aliases: group@domain.com: user1@domain.com, user2@domain.com, group@localhost /etc/aliases: group: |/usr/local/bin/mail2news.pl some-newsgroup But in ViMbAdmin i can't add this address - group@localhost Anyway - group@localhost is correct email, problem is in email address checking
Author
Owner

@Fmstrat commented on GitHub (Jan 18, 2014):

I'm not sure this issue should be closed. Scenario:

This is because there is no way of setting up an alias of do-not-reply@mydomain.com to do-not-reply@localhost because of the email validation. "localhost" should be allowed in the domain field.

<!-- gh-comment-id:32675679 --> @Fmstrat commented on GitHub (Jan 18, 2014): I'm not sure this issue should be closed. Scenario: - I use postfix as a spam filter/relay to my Exchange server. - I have *@mydomain.com forwarding to a single email address, me@mydomain.com - I want to create an /dev/null email address to forward spam to, such as do-not-reply@mydomain.com. - I add "do-not-reply: /dev/null" to my /etc/aliases, and run newaliases - If an email comes in for do-not-replay@mydomain.com, it goes to me@mydomain.com This is because there is no way of setting up an alias of do-not-reply@mydomain.com to do-not-reply@localhost because of the email validation. "localhost" should be allowed in the domain field.
Author
Owner

@Fmstrat commented on GitHub (Jan 18, 2014):

For anyone following this topic, I did figure out a workaround.

  • Create "do-not-reply: /dev/null" in /etc/aliases and run newaliases
  • Ensure your server has a DNS hostname unique from your domain. For instance, "mail.mydomain.com"
  • In main.cf for postfix, use that hostname: "myhostname=mail.mydomain.com"
  • In vimbadmin, create a "do-not-reply@mydomain.com" that forwards to "do-not-reply@mail.mydomain.com"

Doing this allowed for things like group@localhost described above as group@mail.mydomain.com.

<!-- gh-comment-id:32676198 --> @Fmstrat commented on GitHub (Jan 18, 2014): For anyone following this topic, I did figure out a workaround. - Create "do-not-reply: /dev/null" in /etc/aliases and run newaliases - Ensure your server has a DNS hostname unique from your domain. For instance, "mail.mydomain.com" - In main.cf for postfix, use that hostname: "myhostname=mail.mydomain.com" - In vimbadmin, create a "do-not-reply@mydomain.com" that forwards to "do-not-reply@mail.mydomain.com" Doing this allowed for things like group@localhost described above as group@mail.mydomain.com.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ViMbAdmin-opensolutions#42
No description provided.