Questions tagged [postfix]

Postfix is Wietse Venema's mail server that started life at IBM research as an alternative to the widely-used Sendmail program.

Postfix is Wietse Venema's mail server that started life at IBM research as an alternative to the widely-used Sendmail program. Postfix attempts to be fast, easy to administer, and secure. The outside has a definite Sendmail-ish flavor, but the inside is completely different.

762 questions
27
votes
7 answers

How do I change postfix sender address?

How do I make postfix send emails from user@mydomain instead of root@hostname? Even after installing and entering my domain when it asked, it's still being sent with the hostname and not the domain I provided. In my main.cf file myorigin =…
16
votes
1 answer

Configure postfix to send and receive to and from localhost

Does anyone know what needs to be configured for postfix so that emails can be sent to localhost and received from localhost? e.g. send an email to user1@localhost will: result in user1 receiving an email in their mail client (configured to…
8bitme
  • 263
12
votes
1 answer

I am failing to send mail to a Gmail address using Postfix

I am trying to send mail to my test GMail account using Postfix (default Debian setup), and I am failing ("/var/log/mail.log"): Sep 26 16:13:43 sugarmailer postfix/smtpd[1473]: connect from localhost[127.0.0.1] Sep 26 16:13:44 sugarmailer…
tshepang
  • 65,642
10
votes
1 answer

Postfix: How (and why) set up /etc/aliases.db?

I have postfix set up and a local user myuser. An email to myuser@mydomain.com is arriving without problems, so the basic postfix setup is fine. I have then set up virtual alias: mylongname@mydomain.com myuser@mydomain.com and in…
6
votes
2 answers

How to discard mails sent from a specific local user to external addresses?

How can I configure Postfix to silently drop / discard mails that were sent from one of my users to an external address? I'm already able to discard all mails to external addresses using the following transport_maps example.com : * …
Martin
  • 175
6
votes
1 answer

Postfix virtual alias domain matching with regular expression virtual alias map

Using Postfix (2.11.3) I want to redirect all mail to an external address. /etc/postfix/main.cf: virtual_alias_maps = regexp:/etc/postfix/rewrite /etc/postfix/rewrite: /^.+$/ hijacked@example.com Sending mail to destination@example.net, the…
6
votes
1 answer

Disable postfix HELO checks completely

I'm trying to set up a mail relay for a cranky old voicemail system. I set up postfix on a vm, enabled relaying, verified that I can telnet to port 25 from the same subnet and send mail wherever I want. Here's my main.cf: # See…
5
votes
0 answers

How should I deal with smtp_relay_restrictions in postfix?

I just setup a mail server with postfix and dovecot, now I'm having trouble sending emails with evolution. e.g When I send an email to to@gmail.com, I got an error: NOQUEUE: reject: RCPT from unknown[MY_IP_ADDRESS]: 450 4.3.2 :…
daisy
  • 54,555
4
votes
1 answer

Postfix log flooded with warning: end-of-input while reading request from tlsmgr socket: Application error

Recently, I encountered a postfix mail server being unresponsive due to high load, i.e. a high CPU usage. That means console and ssh logins didn't complete due to the load. Monitoring showed 100 % CPU usage, while I/O still being moderate. After a…
maxschlepzig
  • 57,532
4
votes
1 answer

Correct way to create a blackhole account in Postfix

I am trying to create a blackhole account in Postfix and did the following which seems to be the most commonly employed method of doing this in Postfix: 1) Created a user (I named the user blackhole) with /dev/null as the user's home…
Sreeraj
  • 5,062
4
votes
2 answers

Postfix does not check "From:" address with sender_login_maps

I am trying to set up a postfix configuration where (virtual) users are allowed to only send with "From:"-addresses they own. So I put reject_authenticated_sender_login_mismatch into smtpd_sender_restrictions. Using query = SELECT goto FROM alias…
staxyz
  • 609
4
votes
2 answers

How to restrict helo to match the client's ip/domain

Postfix has some nice options to restrict client accesses with respect to DNS/IP address setup and helo names (documentation). For example one can instruct postfix to reject clients if the helo argument is a malformed domain the helo argument is…
maxschlepzig
  • 57,532
3
votes
2 answers

allow mails to one address only from local server

On my companies mail server there is a mail address everyone@example.org which sends a mail to every user which is useful for internal communication etc. I want to restrict this recipient to only allow mails from our mail server and reject any mail…
Florian
  • 347
3
votes
2 answers

Configuring Postfix to return reject message to sender but deliver email anyway

I'm trying to find a way to have my Postfix server appear to reject emails from particular envelope senders while still delivering those same emails to their intended recipients. Microsoft's email servers keep repeatedly blacklisting my mailserver's…
Rich
  • 51
3
votes
1 answer

Postfix: error while loading shared libraries: libmysqlclient.so.16

postfix: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory [root@localhost ~]# mysql -uroot -p*** -e "select version();" Warning: Using a password on the command line interface…
Gavin
  • 33
1
2 3 4 5 6