Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

Above is example of command someone used to successfully direct to subdomain but when I try it I get postconf: fatal: missing '=' after attribute name which makes no sense to me when clearly the equal sign is there.

share|improve this question
Are there spaces in your command line around the equal sign? Seems to me that there must not be spaces. – wollud1969 Dec 12 '12 at 11:37


postconf -e "postfix_mydestination = localhost, blah.deblah.com.au"

Note the quotes and the comma (it's comma separated). Also note you're not editing the main mydestination here, but the postfix_ instance one. Not sure if that's what you actually want.

You need quoting because of the witespace around the equal sign. Just read from the manpage postconf(1):

-e     Edit  the main.cf configuration file, and update parameter settings with
       the "name=value" pairs on the postconf(1)  command  line.  The  file  is
       copied  to  a temporary file then renamed into place.  Specify quotes to
       protect special characters and whitespace  on  the  postconf(1)  command
share|improve this answer
does this make it so directed at subdomain? – freja Dec 12 '12 at 12:06
because in main.cf the hostname had to put main domain because that is what som1 told me in here to do or rather they said use destination for subdomains – freja Dec 12 '12 at 12:07
don't i need a db before anything will work? omg they need simple tutorials and not entire novels to read on this – freja Dec 12 '12 at 12:09
that syntax worked thanks but have no idea what it did- how can I test mail in command line? – freja Dec 12 '12 at 12:16
The values you put in mydestination are the recipient domains it will accept for a local transport. Read manpages, practice with tutorials and learn. This is really basic Postfix configuration. In large virtual domain/alias setups a database might be nice, but start using plain configuration files is my suggestion. – gertvdijk Dec 12 '12 at 12:21

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.