T
T
Twelfth Doctor2017-02-01 14:20:06
linux
Twelfth Doctor, 2017-02-01 14:20:06

How to fix error in Postfix config?

Hello! For some reason, when I try to send an email, I get an error:

[email protected]:/etc/postfix# echo "message" | mailx -s "subject" [email protected]
send-mail: fatal: /etc/postfix/main.cf, line 50: missing '=' after attribute name: "$virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps "
Can't send mail: sendmail process failed with error code 75
[email protected]:/etc/postfix# echo "message" | mailx -s "subject" [email protected]
send-mail: fatal: /etc/postfix/main.cf, line 50: missing '=' after attribute name: "$relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps "
Can't send mail: sendmail process failed with error code 75

Lines from /etc/postfix/main.cf (49-51)
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps 
$relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps 
$relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps

OS: Ubuntu Server 16.04 x64
What could be the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan Fedoseev, 2017-02-01
@martin74ua

you brought one line. Read below

W
Wexter, 2017-02-01
@Wexter

remove line breaks, postfix considers that lines 50-51 are two more parameters in the config, and not the one on 49

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question