Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have set postfix in localhost. but why it reject to use the other username except my computer name. i've set the as follow:

myhostname = yuki
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = yuki localhost.localdomain localhost
relayhost = 
mynetworks = [::ffff:]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
home_mailbox = Maildir/

when i type from terminal:

sudo telnet localhost 25 ==>the result is ok, as follow:
Connected to localhost.
Escape character is '^]'.
220 yuki ESMTP Postfix (Ubuntu)

but when i type from terminal:

sudo telnet 25==>the result is:
telnet: could not resolve Name or service not known

but when i type from terminal:

sudo telnet yuki-PC 25==> the result is:
Connected to yuki-PC.
Escape character is '^]'.
220 yuki ESMTP Postfix (Ubuntu)

Note:yuki-PC is my computer name.

and also when I send email, the email is sent, but when i look in /home/yuki/Maildir/new there is no email there.

help me please, i'm really newbie in network.

share|improve this question

Add the domain to the /etc/hosts and try again:   localhost yuki-PC
share|improve this answer

regarding the emails not being delivered, make sure you have a delivery agent configured correctly, SMTP only receives and transfers email, doesn't actually deliver it to the end user. your case might be either of the below,

1) local_transport is ill configured .

2) for the local users the emails might have been delivered to /var/spool/mail/$username

  • login as the recipient user on the server and issue /bin/mail to see if any emails are listed
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.