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.

Filter by
Sorted by
Tagged with
3
votes
1answer
5k views

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) ...
3
votes
1answer
80 views

Postfix database unreachable behaviour

I have a server running postfix and dovecot with a local mysql database to store virtual domains and users. I'm considering to move the database to another server and perhaps switch to using ldap ...
3
votes
1answer
4k views

How can I have multiple email accounts from different domains using Postfix?

I just made it through this helpful article and successfully have my mail server set up with a single domain. What I'm wondering now is how I can be able to add multiple email account for different ...
3
votes
1answer
3k views

Where does Postfix store attachment inside email?

I am trying to find the folder where Postfix store email's attachment but I can't seems to find it. Anyone know how?
3
votes
2answers
744 views

Can't find emails retrieved by fetchmail

So I set up fetchmail to retrieve emails with IMAP from a remote mail server, I was able to run it. How can I know that it found any emails or not since I did send test emails to the account being ...
3
votes
1answer
11k views

How to search mail logs effectively with `RegEx`

I was looking for some advice and examples on searching mail log effectively Suppose situation is like this -------- Forwarded Message -------- Subject: Fwd: Re: Notice of Allowance Date: Fri, 13 ...
3
votes
2answers
6k views

postfix multidomain myhostname configuration

I have two IP address running on Postfix and each IP has own domain. In short i want to isolate domain so outside folks think it is running on own IP and fully isolated even PTR also But in postfix it ...
3
votes
1answer
22k views

How to configure sendmail.postfix to relay on exchange 2010?

I'm currently trying to figure out how to configure sendmail.postfix in Red Hat 6 to work with exchange 2010 relay. I've already configured our exchange server to allow our web server to relay. What ...
3
votes
2answers
2k views

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 ...
3
votes
1answer
4k views

Block local (unix) users from sending mail

Is there a way to block a local/unix user (or a list of local users) from sending mails via mail command (or maybe even in postfix, which is the MTA I have).
3
votes
2answers
7k views

Why access file is being ignored by Postfix?

I have installed Postfix, I can send mails between local users as expected, but I would try to limit the access of a particular user to the server. I edited the /etc/postfix/access file in this way: ...
3
votes
1answer
4k views

extracting attachments from mail that is coming to my postfix inbox

How do I extract attachments from mails arriving at my postfix mailbox and preferably send the content of the attachment to another email account? I am interested in being able to acquire/read the ...
3
votes
1answer
7k views

Email Sent via root@domain.com despite modifying /etc/aliases

First, here are the entries I added/modified in /etc/postfix/main.cf file: mydomain = domain.com myorigin = $mydomain relayhost = email-smtp.us-east-1.amazonaws.com:25 smtp_sasl_auth_enable = yes ...
3
votes
2answers
13k views

Postfix service enabled but won't start on reboot

The postfix service won't start after rebooting the system. We are using our own custom Linux OS based on OpenSuse 12.1 and recently verification departement has found that the /var repository is ...
3
votes
2answers
377 views

Control character handling in cron/mailx

I have a cron job which runs a long script producing lots of output. Some of the output is lines delimited by single carriage returns; when run from the command line, these make the successive lines ...
3
votes
1answer
3k views

Can't send local mail message between users on linux

In https://unix.stackexchange.com/a/21336/99621 it says that if you do echo 'body' | mail -s 'subject' myuser It will send a mail message to the myuser linux account on the local system that this ...
3
votes
1answer
6k views

how to use procmail as a MDA for postfix? (mailbox_command)

I am trying to setup procmail as a mail delivery agent (MDA) for postfix. I understand that I should use the mailbox_command option in postfix for this, but an internet search revealed contradicting ...
3
votes
1answer
1k views

cron and at send mail to wrong user

I have cron and sometimes at on an ubuntu 14.04. jobs output should be mail to me, but failed. I make a .forward in my home dir. mail explicitly send to local unix user is forwarded to my corp mail ...
3
votes
1answer
6k views

On Linux, what is the "mail" user account for?

There's an account mail and a group by the same name on my system, what's its purpose ? It owns the /var/spool/mail directory (empty currently). I plan to use that directory, as well as that user to ...
3
votes
1answer
2k views

Relay access error when I try to send mail from outside to postfix

I run a debian 7 system and I run postfix as smtp server. I can send mail from postfix to outside (even though it gets to spam folders by google) but when I try to send a mail from, lets say my google ...
3
votes
1answer
977 views

Mail delivery problems

Once upon a time there was a server. Lets call it zzz.com, running Ubuntu LTS 10. Then, domain owner decided to create his corporate mail via Google Apps, and created account username@zzz.com. ...
3
votes
2answers
5k views

Saving all incoming messages into a database with Postfix?

Is there some plugin for Postfix that can allow you to save all incoming messages into a relational database (PostgreSQL)?
3
votes
1answer
314 views

postfix default alias used even when I have other aliases

I tried adding a rule to /etc/aliases which would send a message to /dev/null if it was sent to a particular alias: fooname: /dev/null I have postfix set up with a default address for a particular ...
3
votes
1answer
618 views

How can I limit outgoing connections to one program?

I would like to prevent spam messages sent from my computer by programs/scripts uploaded by anyone. The only legitimate use case is to connect to postfix through the submission port, and after ...
3
votes
1answer
4k views

Postfix TLS Encryption for outgoing email

This is my postfix main.cnf configuration file smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no # appending .domain is the MUA's job. append_dot_mydomain = no # Uncomment the next ...
3
votes
2answers
2k views

OS X Postfix no TLS found

I'm working on OSX El Capitan. About week ago everything worked fine, but then I changed my gmail password and now I can't send emails any more. Additional configuration for /etc/postfix/main.cf is: ...
3
votes
1answer
6k views

How to change the email address Postfix sends out as

I currently use Postfix on an Ubuntu machine that uses Nagios for monitoring. I'd like to change the email address that Postfix uses to send out. Postfix just relays all its email through our ...
3
votes
1answer
1k views

My IP is blacklisted for sending spam, logs aren't showing anything

I have Ubuntu server which is more or less acting as a web and mysql server. There is no postfix or anything similar installed. With a help of Virtualbox there is also virtualised Ubuntu server which ...
3
votes
1answer
182 views

Unknown entries in the default /etc/postfix/aliases file

While setting up a new Postfix installation on a Mageia 3 Linux system, I came upon a few entries in the default /etc/postfix/aliases file that I do not know the background of: # Common aliases for ...
3
votes
0answers
482 views

Postfix reject unknown recipient

I have a problem with backscatter. Spammers send emails to non existent username @ existent domain hosted on my server. I am trying to abort the session instead of sending bounce messages back to ...
3
votes
0answers
2k views

Should double-bounce@mydomain.com be a valid email address?

Our postfix setup uses recipient address verification. Obviously, postfix uses for this process a special email address, defined right here. $ /usr/sbin/postconf | grep double_bounce_sender ...
3
votes
1answer
9k views

Postfix: error while loading shared libraries: libmysqlclient.so.16 [closed]

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: ...
3
votes
0answers
400 views

Postfix sending hostname needs to be different for different domains

We have an application that generates outbound email for a range of domains. The app servers connect to a part of Postfix servers in a DMZ and these then forward on to filtering in a second DMZ. We ...
3
votes
2answers
320 views

Is it possible to redirect root email to axigen internal e-mail?

For a few month I've been using Axigen webmail as my main e-mail server. For the last month I was looking for a way of redirecting my root e-mail, as well as my crontab outputs into an internal ...
3
votes
1answer
2k views

How can I configure Postfix to silently drop/discard/reject mails that were sent from specific users to an external address?

How can I configure Postfix to silently drop/discard/reject mails that were sent from specific users to an external address? It should work only for specific users E.g: abc@localdomain can send ...
3
votes
2answers
786 views

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 ...
3
votes
1answer
4k views

SMTP Auth - SASL on Dovecot, Postfix and CentOS 6.2 (and Open-Xchange)

I am trying to get open SASL to work on CentOS 6.2. I followed this tutorial: http://wiki.centos.org/HowTos/postfix_sasl I suspect it works perfectly for CentOS 5.x so all I really need is an update ...
3
votes
0answers
1k views

Check & filter outgoing mails in Postfix

I am looking for a way to check outgoing mails with rules like : mails sent to a particular domain mails sent without subject or with a specific subject mails with an attachment of a certain size ...
3
votes
4answers
2k views

Installing Postfix conflicts with MySQL-server package

I had to install MySQL Server community on our server (team lead did not want MariaDB due to support or something). Therefor I removed MariaDB which in turn also removed Postfix. Now I need to ...
2
votes
3answers
7k views

Redirect all incoming email to a Python script

I'd like to manage all email incoming to *@example.com with a Python script running on my server, which will do various jobs. I've already done a DNS MX record for example.com, directing it my server:...
2
votes
2answers
14k views

Postfix: Recipient address rejected from another domain zones

I have successfully installed Postfix/Dovecot with virtual domains and TLS support like this article describes - https://geekpeek.net/postfix-with-dovecot/ ... But faced with the problem. I can send ...
2
votes
3answers
2k views

(Raspian) DHCP startup race conditions - lots of service failures at startup (no DNS for ~5-10 seconds)

(Edit: This applies to much more than postfix; it's just where I noticed/debugged it) I've installed postfix, but when it starts up and creates its chroot, it gets an empty copy of /etc/resolv.conf ...
2
votes
2answers
3k views

Where do uncaught local emails go?

Suppose I run - mail goldfish There is no such account on the system and no such aliases defined, where would the mail go? How do I see a list of such mails?
2
votes
1answer
701 views

Port 110 visible to the outside world - necessary or a bad idea?

I just did [a test][1] that told me my gateway's (debian squeeze) port 110 is visible from outside. It's a box with two network cards, eth0 is for my internal network (192.168.1.0/24) and eth1 goes ...
2
votes
2answers
486 views

Unable to resolve 1.2.3.4.list.dsbl.org

History: Everything starts with this log entry postfix/smtpd[10001]: warning: x.x.x.x.list.dsbl.org: RBL lookup error: Host or domain name not found. Name service error for name=x.x.x.x.list.dsbl.org ...
2
votes
2answers
7k views

How to change the communication port between postfix and other servers?

I am having this trouble with our mail server (postfix): I try to send a test mail using mail command and it runs ok: mail mailamilmail@gmail.com Subject: bla bla (CTRL+D) But when I look to tail -...
2
votes
2answers
2k views

Forward Postfix mail based on regexp

We are buildng a ticket system using PHP. We have now bumped into the problem of identifying customer replies. Placing an id in the subject will not do because users could remove this. Posting an id ...
2
votes
1answer
4k views

Sending email out at a specific time

I'd like to write emails now and have them go out at some specific time in the future, eg. when the office opens in the morning. What would be a good way to do that ? Most user agents don't support ...
2
votes
1answer
4k views

Sending mail via cron doesn't work

We have an rsync script for making a backup from server 1 to server 2. The server is Centos-type, Amazon Linux AMI. The script is executed daily via crontab. The backup is made, so cron runs and the ...
2
votes
1answer
155 views

How to identify faked mail origin?

Today while setting up a mail server using postfix, I practiced to use sender_canonical_maps option, and noticed that it can change outgoing mail "sender" to appear like someone else. When Gmail ...

1 2
3
4 5
14