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 a postfix/dovecot system setup on Ubuntu 10.04, and it sends/receives emails fine, but when I send emails they are all from

For example, I have a user called "info" and when I try to send an email using mutt from this Mailbox "/home/vmail/" the email will send find but it will be from "" and not "". I have 3 mailboxes (/home/vmail/, /home/vmail/, and /home/vmail/ and they all send and receive emails.

I am new to postfix and dovecot... can someone who knows what they are doing help me out on this one??

 30 myhostname =
 31 alias_maps = hash:/etc/aliases
 32 alias_database = hash:/etc/aliases
 33 myorigin = #have tried setting myorigin = and still same problem
 34 mydestination =, localhost, localhost.localdomain
 35 relayhost =
 36 mynetworks =
 37 mailbox_size_limit = 0
 38 recipient_delimiter = +
 39 inet_interfaces = all
 40 html_directory = /usr/share/doc/postfix/html
 41 message_size_limit = 30720000
 42 virtual_alias_domains =

This is from the aliases file

 postmaster: root
share|improve this question
What user are you logged in as when you are using Mutt? – Ladadadada Mar 25 '12 at 20:51
I am logged in as root. I guess this is not an error, and just how mutt is programmed? I thought if I was in a users mailbox the from header would be for that user. – Errol Fitzgerald Mar 25 '12 at 21:51
up vote 0 down vote accepted

You need the following two settings in your .muttrc:


You can also edit the headers of a message before sending by using E (that is the default on my machine, check with ?). This will open the whole message in your editor and you can fiddle with the headers to your heart's content.


Sorry I should just say, if you want these settings to only be asserted when accessing certain mailboxes, you need some accounts/folder hooks. You'll need to adapt these to your situation (as these are munged from my own .muttrc for my imap access):

account-hook imaps://<dovecot domain>/ 'set imap_user="info"'
folder-hook imaps://<dovecot domain>/ 'set folder="imaps://<dovecot domain>" record="+Sent"  postponed="+Drafts" from="" realname="info"'
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.