Questions tagged [postfix]

Free and open source mail transfer agent (MTA) that routes and delivers email. When asking about postfix problem, please include the relevant maillog lines and output of the following command: `postconf -n` (non-default content of main.cf) and `postconf -M` (content of master.cf)

Postfix is a mail transfer agent (MTA) that supports IPv6, DNSBL, SMTP AUTH (SASL), TLS and various database backend.

Postfix was written by Wietse Venema in 1997 and first released in December 1998 as IBM Secure Mailer.

It was designed to be highly secure and configurable, and is a drop-in replacement for , with much simpler configuration syntax.

The software was also formerly known as VMailer.

6398 questions
37
votes
5 answers

Changing the maximum mail size in Postfix

When sending large email to a new CentOS6 server running Postfix as the MTA, the following message is returned: tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further…
warren
  • 18,369
  • 23
  • 84
  • 135
35
votes
2 answers

Postfix TLS over SMTP - RCPT TO prompts renegotiation then 554 5.5.1 Error: no valid recipients

I've setup ispconfig3 on my debian six server, and here is a little smtp over ssl: The server is postfix AUTH PLAIN (LOL!) 235 2.7.0 Authentication successful MAIL FROM: lol@lol.com 250 2.1.0 Ok RCPT TO: lol@lol.com RENEGOTIATING depth=0…
lol
  • 465
  • 1
  • 5
  • 12
35
votes
4 answers

SASL LOGIN authentication failed: UGFzc3dvcmQ6 - Find the username

First let me state that the mail server is working fine and users can connect and send email. Basically there is a local web script connecting into the mail server trying to send mail every few minutes. It has the wrong password. Problem is we…
Ryaner
  • 3,097
  • 5
  • 25
  • 33
34
votes
2 answers

Sending malicious email as a test

I have set up a working SMTP relay together with MailScanner. This SMTP relay is not — and will not be — able to relay email from the outside, only local email. Is it possible to send a malicious email with the terminal? I have googled around but…
Orphans
  • 1,396
  • 2
  • 18
  • 30
34
votes
3 answers

POSTFIX fatal: no SASL authentication mechanisms

I am struggling with the error above for more than 5 hours. I had tried to remove Postfix completely and I had followed the instructions of the next manual and the SASL manual in order to reinstall it. When I am trying to login with telnet, the…
user2979757
  • 511
  • 1
  • 5
  • 5
34
votes
7 answers

postfix - how do you redirect all emails to one user, eg *@example.com → user@example.com

I'm using postfix for my email. I know I can use /etc/aliases and newaliases command to redirect certain email, eg I can redirect root@example.com to user@example.com by putting root: user in my /etc/aliases and then running newaliases. However I'd…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
33
votes
5 answers

Send mail from Docker container with host's Postfix

I am running an Ubuntu 14.04 (Linux) server. I have installed and configured Postfix and OpenDKIM very nicely on the server; I can send emails to myself with commands such as echo hi | sendmail root, and postfix/opendkim will add headers such as…
David Grayson
  • 491
  • 1
  • 4
  • 10
33
votes
2 answers

Can postfix be set up to forward mail to multiple recipients

I have the following postfix virtual file: test@domain.com bob@me.com This correctly forwards all emails to test@domain.com to bob@me.com However I would like to forward these emails to bob2@me.com as well. I tried this change and it does not seem…
Sam Saffron
  • 1,979
  • 3
  • 18
  • 27
32
votes
2 answers

Confused about alias_maps and virtual_alias_maps

I have already re-read the docs on this as well as other posts here and this is still very unclear to me. I have been testing various things to understand the difference between alias_maps and virtual_alias_maps and I don't see the use of these 2…
Neel
  • 1,441
  • 7
  • 21
  • 35
31
votes
1 answer

What's the difference between postfix/smtp and postfix/smtpd

A bit confused when reading through the logs of my smtp/mail server, I'm turning this questions to you guys. In the maillog files I'm seeing entries for postfix/smtp as well as postfix/smtpd. I can also see that there are possible settings for smtp…
Edwin Krause
  • 447
  • 1
  • 4
  • 6
31
votes
4 answers

How to configure postfix to pipe all incoming email to a script?

Using postfix, I'd like all incoming mail, to any address (including those that don't map to local users) to be piped to a script. I've tried configuring mailbox_command in /etc/postfix/main.cf: mailbox_command = /path/to/myscript.py This works…
user67641
  • 1,292
  • 2
  • 14
  • 18
30
votes
3 answers

Forcing encryption for outgoing SMTP with Postfix

Does anyone know how to tell Postfix to encrypt outgoing mail? I have configured it to use encryption on reception, but I'm unable to do it with the outgoing mail. This is my main.cf file: smtpd_recipient_restrictions = permit_sasl_authenticated,…
Simon
  • 875
  • 2
  • 12
  • 22
29
votes
3 answers

How should I test Clam Anti-Virus?

I have setup a new email server and now I need to test that Clam Antivirus is scanning messages correctly. How should I do this in a safe and controlled way?
karthick
  • 683
  • 3
  • 7
  • 14
28
votes
5 answers

Postfix - Host or domain not found

I've just installed Postfix on my Ubuntu, on a local network. On this network, I have an Exchange Server (using domain mail.example.com). I had a problem sending an email to a local address: adress@example.com: relay=none, delay=0.01,…
Vincent LITUR
  • 405
  • 1
  • 6
  • 9
27
votes
3 answers

How to redirect all postfix emails to one external email address?

To create a test email server, I have a similar requirement as: How to redirect all outgoing email from postfix to a single address for testing But I need to send all the emails to an external account, not a local one. I would like to do something…
user43856
  • 271
  • 1
  • 3
  • 3