Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to set up an e-mail server, but after installing procmail, I can't get it to work.
This is what I get when I try to send an e-mail within the domain:
Quote:
Jun 13 23:22:43 macroscian postfix/qmgr[21196]: D39BE70F8ED3E: from=<user@mydomain.com>, size=431, nrcpt=1 (queue active)
Jun 13 23:22:59 macroscian procmail[21207]: Couldn't rename bogus "/var/spool/mail/vinci" into "/var/spool/mail/BOGUS.vinci.2o"
Jun 13 23:23:00 macroscian postfix/local[21206]: D39BE70F8ED3E: to=<vinci@macroscian.com>, relay=local, delay=16, delays=0.18/0.04/0/16, dsn=5.2.0, status=bounced (can't create user output file. Command output: procmail: Renaming bogus mailbox "/var/spool/mail/vinci" info "/var/spool/mail/BOGUS.vinci.2o" procmail: Couldn't create "/var/spool/mail/vinci" )
Jun 13 23:23:00 macroscian postfix/cleanup[21204]: 0909370F8ED3F: message-id=<20160613202300.0909370F8ED3F@macroscian.com>
Jun 13 23:23:00 macroscian postfix/bounce[21243]: D39BE70F8ED3E: sender non-delivery notification: 0909370F8ED3F
Jun 13 23:23:00 macroscian postfix/qmgr[21196]: 0909370F8ED3F: from=<>, size=2477, nrcpt=1 (queue active)
Jun 13 23:23:00 macroscian postfix/qmgr[21196]: D39BE70F8ED3E: removed
Jun 13 23:23:00 macroscian postfix/local[21206]: 0909370F8ED3F: to=<quas@macroscian.com>, relay=local, delay=0.01, delays=0/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -a "$EXTENSION")
Jun 13 23:23:00 macroscian postfix/qmgr[21196]: 0909370F8ED3F: removed
It's old, but it's well-written and clearly explained and, based on my personal experience, works for my personal use of Mutt for email.
Could you post the beginning of your .procmailrc file, the part up to when the procmail recipes start?
Did you also install formmail? I'm hardly a Linux postmaster, but I know that, in my .procmailrc file, I have to tell it where to find formmail, but I don't know enough to explain how they work together.
I've never heard of formmail, but that's quite irrelevant, given this is the first time I've configured an e-mail server. In the tutorial I'm reading, which is quite comprehensive, it says nothing of formmail. I'm using SpamAssassin which I gather does the same thing? What I'm trying to say is that I'm not really sure that procmail is dependent on formmail
For some reason, it started working. I've no idea why. It might be that I have forgotten to restart the services. This could have been one of the problems. So there's no need for formmail. At least this is what I'm inferring now.
Glad it's working and sorry I missed the mark. It was sort of shot in the dark any way.
Could you post a link to the tutorial you were following? Others might find it interesting. I know I would.
Frankly, I'm not that clear on the relationship between formail and procmail, as it's been a while since I first set up Mutt. From what I remember, procmail said where the mail should go and formmail put it there in the correct format. It's not really analogous to Spam Assassin, as it doesn't assassinate anything. But, as I said, I'm hardly a Linux postmaster.
Formail's man page says
Quote:
formail is a filter that can be used to force mail into mailbox format, perform `From' escaping, generate auto-replying headers, do simple header munging/extracting or split up a mailbox/digest/articles file. The mail/mail-box/article contents will be expected on stdin.
Based on that, formail seems to be more about format than anything else, and, thanks to you, I've learned something new tonight!
Well, it's more of a book than a tutorial, actually.
It's called Pro Linux System Administrator, by James Turnball, Peter Lieverdink and Dennis Matotek. (apress). It's 2009, and I'm implementing it for Centos 7, which means that I have to adapt a few things, but it's not all that bad.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.