Archive for the tag 'aliases'

IP aliases disappears after network services is restarted in Ensim

If networks service has been restarted server looses the IP aliases set by ensim.

To get all IP aliases back restart virtualhosting service.

# service virtualhosting restart
SBDavid

Shell Command Aliases

Shell Command Aliases

A command alias allows you to create an alias name for common commands (along with their
parameters) to help keep your typing to a minimum.

Most likely your Linux distribution has already set some common command aliases for you. To
see a list of the active aliases, use the alias command with the -p parameter:

Example:

$ alias -p
alias l.=’ls -d .* –color=tty’
alias ll=’ls -l –color=tty’
alias ls=’ls –color=tty’
alias vi=’vim’
alias which=’alias | /usr/bin/which –tty-only –read-
alias–show-dot –show-tilde’
SBDavid

Creating the postfix aliases database

Creating the postfix aliases database

Postfix uses a Sendmail-compatible aliases(5) table to redirect mail for local(8) recipients. Typically, this information is kept in two files: in a text file /etc/aliases and in an indexed file /etc/aliases.db. The command “postconf alias_maps” will tell you the exact location of the text file.

root@dell:~# postconf alias_maps
alias_maps = hash:/etc/aliases
root@dell:~#

First, be sure to update the text file with aliases for root, postmaster and “postfix” that forward mail to a real person. Postfix has a sample aliases file /etc/postfix/aliases that you can adapt to local conditions.

/etc/aliases:
root: you
postmaster: root

Note: there should be no whitespace before the “:”.

Finally, build the indexed aliases file with one of the following commands:

# newaliases
# sendmail -bi

Prevent subdomains and domain aliases in the DNS zones belonging to other users in Plesk.

By default, users can create new subdomains and domain aliases in the DNS zones belonging to other users. This means that they can set up Web sites and e-mail accounts which could be used for spamming, fishing or identity theft.

To prevent users from setting up domains and domain aliases in the DNS zones belonging to other users:

1. Go to Settings > Restrict Creation of Subzones (in the DNS group).
2. Select the Do not let users create DNS subzones in other users’ DNS superzones check box.
3. Click OK.