Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

34
votes
7answers
49k views

postfix/smtpd: warning: connect to Milter service unix:/var/run/opendkim/opendkim.sock: No such file or directory

I have problem with postfix on debian after upgrading from squeeze to wheezy. Postfix was configured to sign messages using dkim-filter. Before update, everything was working flawlessly, now it fails ...
29
votes
2answers
94k views

Where does postfix store email?

I can't find any documentation on how postfix stores email. Where is it stored, and in what format? I'm using Ubuntu server 11
18
votes
1answer
15k views

Postfix mail logs keep showing “NIS domain not set”

I just set up a new email server using Postfix and Dovecot. I've been troubleshooting, and this line keeps appearing in my logs (specifically, mail.info and mail.log). What is a NIS domain, and how do ...
14
votes
1answer
22k views

Which name should be used for myhostname in Postfix's main.cf?

For #myhostname, I should uncomment and put my hostname, i.e. the name I gave my VPS, right? Or does it just go myhostname = mydomain.net, in other words don't edit the phrase 'myhostname' except to ...
12
votes
2answers
48k views

“IPv6 support is disabled” warnings

I get the error while running a script which tries to send emails. send-mail: warning: inet_protocols: IPv6 support is disabled: Address family not supported by protocol send-mail: warning: ...
12
votes
1answer
34k views

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 ...
11
votes
2answers
46k views

Where to find the error messages of Postfix

I cannot sent mail by using Postfix (SMTP) on Ubuntu Server 11.04. So, there must be some errors, But where to see the error message?
11
votes
1answer
25k views

Postfix: disable authentication through port 25

When using Postfix and IMAP on a mailserver, at least 3 ports are usually opened 25 smtp : incoming emails from anybody (whole internet) 465 smtps : outgoing emails from authorized users (to the ...
10
votes
5answers
22k views

Postfix doesn't send mail, complaining about “Host or domain name not found”

I followed these instructions in order to send mail and here's the Postfix log: Sep 26 00:46:24 tshepang postfix/smtpd[5728]: 8EE2464931: client=localhost[127.0.0.1] Sep 26 00:47:44 tshepang postfix/...
9
votes
5answers
23k views

Postfix no longer logs to /var/log/mail after it has been deleted and re-created?

I accidentally deleted the /var/log/mail file. Until that point I was able to monitor it using postfix stuff. Now, it seems that Postfix doesn't send its logs to /var/log/mail, since the file is not ...
9
votes
2answers
565 views

Mailman / Postfix Configuration Assistance

I am writing for some help regarding Postfix configuration. I cannot seem to get Postfix configured properly to transfer mail to the mailing list installed on the same server. I followed many steps ...
8
votes
8answers
60k views

Helo command rejected: need fully-qualified hostname Error

My mail server is in some blacklist cause of spams. I reconfugured postfix. Aften then My customers get this error they can't send emails. 404 4.5.2 <PLLAMNAZIFE>: Helo command rejected: need ...
8
votes
3answers
28k views

Test if postfix is running

I'm searching for a reliable way to test if postfix is running from inside a bash script. My first attempt was simply trying pidof postfix, which doesn't work. Then I tried to get the postfix status:...
7
votes
3answers
20k views

Run script on receipt of email

I run a Postfix/Dovecot mail server for personal use. There's only a handful of actual mailboxes, essentially just postmaster@domain.com and username@domain.com. I frequently use the virtual file to ...
7
votes
2answers
41k views

My Postfix installation is sending out spam; how to stop it?

Since a few days, my web/mailserver (centos 6.4) is sending out spammails by the bunch, and only stopping the postfix service is putting an end to it. SMPT is set up to only accept connections over ...
7
votes
2answers
3k views

Postfix + SpamAssassin: Incoming mail headers changes

I made a Postfix + SpamAssassin setup following the instructions most websites recommend for this kind os setup. Basically I edited my master.cf to add: smtp inet n - - - ...
7
votes
2answers
12k views

Why I can't send mail to remote mailbox?

I have installed Postfix on my CentOS machine. I can nicely send mails to local accounts with mutt, but when I try to send one to a remote mail like myactualmail@gmail.com, I cannot understand why I ...
7
votes
1answer
21k views

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[...
7
votes
1answer
13k views

postfix smtp connection timed out, why?

A CentOS 7 web server has postfix, dovecot, and mailx installed. I have been able to make an IMAP connection to the server in order to read inbox mail using a remote Thunderbird client, but I am not ...
7
votes
1answer
8k views

Connect / disconnect unknown postfix log

After analyzing the postfix logs on my server I noticed the following message : Sep 4 15:12:50 vps66698 postfix/smtpd[25401]: connect from unknown[195.22.126.189] Sep 4 15:12:50 vps66698 postfix/...
7
votes
1answer
1k views

Add warning to emails received by Postfix without TLS

Is it possible with Postfix to add a warning to all emails received over a cleartext (non-TLS) connection? For example modifying the subject and/or adding a custom header.
7
votes
2answers
2k views

Multiple instances of Postfix throwing error fatal: unknown service: smtp/tcp

I am trying to configure multiple postfix-2.12 instances on FreeBSD 10.0-RELEASE following the README. postmulti -e init postmulti -I postfix-out -G mta -e create ... This all works I can start and ...
6
votes
2answers
3k views

Postfix: prevent users from changing the real e-mail address

My postfix e-mail server is finally working well. Now, I need to prevent users from forging their e-mail addresses in the client programs in the "from" field in the header, because a user can send ...
6
votes
1answer
1k views

Can't delete system email

While running Postfix on an Ubuntu, I have acquired a number of test email in an account usr1, and now I want to delete them before starting other testing. However, every time I try to delete using ...
6
votes
1answer
16k views

How to make postfix create maildir?

How do you make postfix create maildir folders automatically for all users? I have these two lines in postfix main.cf, which supposed do create maildir folder after the first mail but it is not ...
6
votes
2answers
12k views

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 ...
6
votes
5answers
24k views

How to create Maildir directory with enough permissions for Postfix?

I have CentOS 5.5 with Postfix installed on it. I want to use local delivery agent with default setting, but I want it to store mail with Maildir directory style mailboxes. When I set the mailboxes ...
6
votes
1answer
2k views

Configure Postfix and Dovecot-LMTP to receive mail via SMTPUTF8?

I am running a Postfix server which uses Dovecot LMTP for mail delivery. I am doing this because it plays well with sieve. However, I have gotten some email lately with Unicode in the subject line. ...
6
votes
1answer
3k views

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 ...
6
votes
1answer
10k views

Postfix email bounced (mail for domain loops back to myself)

I have a problem when I send a mail to example@orbialia.es for example2@orbialia.es My emails has bounced for this error: status=bounced (mail for orbialia.es loops back to myself) May 9 09:33:58 ...
6
votes
2answers
2k views

Use /etc/aliases for outgoing mail relayed by postfix with local domain

I'm using Ubuntu 12.04 with postfix configured as satellite system that relays outgoing mail to Gmail. For sake of example, my registered domain is example.com I want root cronjobs' error output to be ...
6
votes
1answer
2k views

Postfix configuration - keep the envelops

I have a postfix server that delivers mail and send a copy of the outgoing mail to a second server for content analysis using the following configuration (addresses and IPs have been replaced): main....
6
votes
2answers
3k views

Restricting who can send to an email address

I'd like to do so that only certain From: addresses can send to an email address (mailing list) on an Ubuntu system running Postfix. Understanding the Postfix the manuals are requires a lot of ...
5
votes
2answers
16k views

Postfix, Amavis-new, ClamAV: Permission denied. ERROR

Error lines in /var/log/maillog Sep 22 12:08:20 sun amavis[4493]: (04493-09) (!)run_av (ClamAV-clamd) FAILED - unexpected , output="/var/spool/amavisd/tmp/amavis-20130922T052321-04493-crApLkq5/parts: ...
5
votes
2answers
4k views

Change user maildir to custom location upon creation of the user

I use Ubuntu 14.04.3 LTS . How to change the location of the Mailbox /home/user/Maildir/ to /Location/Mail/? I don't have to create home directory for that user. I did some changes in the /etc/...
5
votes
1answer
18k views

Add header to outgoing email with postfix

Can someone please provide an example on how to add a Precedence: bulk header to all outgoing emails using postfix. I would like to know what file(s) to create or edit and what I should put in ...
5
votes
1answer
622 views

Mail Server Spoofing Prevention

I was in the mail logs yesterday when I noticed the following messages, only there were more like 10,000 odd hits: Jun 21 10:47:10 exi-svr-2 dovecot: pop3-login: Disconnected: user=<tori>, ...
5
votes
1answer
12k views

How to prevent bounce of SMTPUTF8 emails

After updating postfix to 3.0, emails with UTF-8 chars in there subjects, are stuck in queue, with the following error: SMTPUTF8 is required, but was not offered by host mail.example.com [1.2.3.4]...
5
votes
1answer
1k views

accessing Maildir locally with Mutt and remotely over IMAP simultaneously

I have Postfix + Maildir + Dovecot + IMAP on my mailserver. I am accessing my mailbox remotely over IMAP with one or more clients (Thunderbird). Additionally, on the server I have mutt configured for ...
5
votes
0answers
390 views

Mail Server send/receive issues [closed]

I have set up a mailserver using Postfix, Dovecot as my SASL and Rainloop as my WebClient. I'm using MySQL (after asking my last question) for my user accounts and passwords, and it's working properly,...
5
votes
0answers
10k views

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 ...
5
votes
4answers
52k views

Relay access denied when using SMTP to external recipients POSTFIX FREEBSD

i am trying to send an email with my freebsd server using postfix and dbmail to an external adress. I have noticed the following things: MYSERVER -> MYSERVER = OKAY EXTERNALSERVER -> MYSERVER = ...
4
votes
3answers
2k views

Install mdadm without postfix in ubuntu trusty

I want to build a RAID system on top of Ubuntu Trusty. When I do apt-get install mdadm A screen pop up asking me to configure postfix. Because I will run this installation in automation script. Is ...
4
votes
2answers
3k views

Protecting postfix from bruteforce attacks

a few days ago I've set up a VPS, including personal SMTP service using postfix + procmail under Debian / Wheezy. I am already seeing a LOT of hammering onto the SMTP and other ports. Here's an ...
4
votes
2answers
410 views

I can't send email via my own Postfix anymore due to enforced restrictions that I made

Until recently my server with Postfix has worked well. Then I enforced some restrictions to a) combat spam b) disable sending emails to me on behalf on my own name -- I have begun receiving emails ...
4
votes
4answers
8k views

Dovecot ignores settings for mailboxes

I have set up Dovecot on my Postfix mailserver. My mailserver is using Maildir format: home_mailbox = Mail/inbox/ A user's Mail directory looks like this: $HOME/Mail/inbox $HOME/Mail/drafts $HOME/...
4
votes
6answers
21k views

Thunderbird fails to connect to Dovecot and Postfix

I set up Dovecot and Postfix, but when I try to authenticate with Thunderbird, it gives this error: "Thunderbird failed to find the settings for your email account." ==> /var/log/dovecot-info.log &...
4
votes
1answer
639 views

Is it possible to send emails locally to user root

I set up a mailing system in my Debian VPS. Everything works smoothly except for I can't send an email to user root. There is a workaround to specify in /etc/aliases something like root: <...
4
votes
2answers
9k views

sending email to IP address via postfix

My friend and I have configured two Postfix mail servers on our laptops. We succeeded in sending mail to a real network (to some Gmail accounts) from our computers; that was the easy part. We now ...
4
votes
1answer
2k views

Send all local mail to a single external e-mail

I am trying to send all local mail to a single external e-mail, using Google's SMTP servers. Using Google's SMTP servers work, as I am able to send mail to external addresses work using mail from ...