LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 11-13-2015, 05:28 PM   #31
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled

Oh boy. My first server was Exim, very long time ago, all I remember is it was real easy to set up. Then I started using Sendmail and it didin't take long to get it going. Postfix must be a monster ...
 
Old 11-13-2015, 05:41 PM   #32
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Postfix is (IMHO) much easier to get to grips with than Exim, and an order of magnitude less obtuse than Sendmail.

But the biggest hurdle to overcome when setting up ANY mail server is the requisite knowledge of the underlying protocols and processes - no 'cut & paste' tutorial can teach that.
 
Old 11-13-2015, 05:52 PM   #33
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052
Quote:
Originally Posted by Emerson View Post
Oh boy. My first server was Exim, very long time ago, all I remember is it was real easy to set up. Then I started using Sendmail and it didin't take long to get it going. Postfix must be a monster ...
Postfix has a ton of different configuration options. SASL makes it more complicated too. + Spamassasin, forget it. I used to host my own email + DNS using on Debian with dnsmasq (caching spam address look ups), postfix, dovecot, spamassasin (hooked into SpamHaus DBL), and anti-virus with clamav. It was a little project that turned into something I did for quite a while. I ended up yielding and moving my domain to google apps since I have a google apps account for beta testers that gives me pretty much every google service available and unavailable.

Here are some of the links I have archived from my email server project. I realize that none of these sites document how to do these tasks on Slackware. It is all transferable to Slackware though if you take into account the difference between distributions of Linux.
 
Old 11-13-2015, 07:23 PM   #34
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 14.1 3.18.1
Posts: 294

Original Poster
Rep: Reputation: 10
Coming to a close with my attempts... Apparently I am not ready for this.

Unless something new pops up I want to thank everyone for their help and the links.... I will continue to read about all of this but my efforts currently are no more.

One last comment;

/var/log/messages mention nothing past my initial login as well as /var/log/syslog

BUT

/var/log/maillog mentions this;

Quote:
Nov 13 18:16:16 linux1 postfix/smtpd[1183]: warning: SASL authentication failure: Requested identity not authenticated identity
Nov 13 18:16:16 linux1 postfix/smtpd[1183]: warning: HouseOfM.domain[192.168.0.2]: SASL PLAIN authentication failed: authentication failure
 
Old 11-17-2015, 07:01 PM   #35
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 14.1 3.18.1
Posts: 294

Original Poster
Rep: Reputation: 10
Well I have tried many different combinations of things.

postfix and sasldauth bot load without error either in visible error or in /var/log*.

I have the user and password verified.

These are the only errors I get;

/var/log/syslog;

Nothing to do with Postfix.. Last entry was reboot message.

/var/log/messages;

Nov 17 12:17:48 linux1 saslauthd[1002]: detach_tty : master pid is: 1002
Nov 17 12:17:48 linux1 saslauthd[1002]: ipc_init : listening on socket: /var/state/saslauthd/mux

/var/log/maillog;

Nov 17 12:17:57 linux1 postfix/postfix-script[1077]: starting the Postfix mail system
Nov 17 12:17:57 linux1 postfix/master[1079]: daemon started -- version 2.11.7, configuration /etc/postfix
Nov 17 12:19:09 linux1 postfix/smtpd[1086]: connect from HouseOfM.domain[192.168.0.2]
Nov 17 12:19:42 linux1 postfix/smtpd[1086]: warning: SASL authentication failure: Requested identity not authenticated identity
Nov 17 12:19:42 linux1 postfix/smtpd[1086]: warning: HouseOfM.domain[192.168.0.2]: SASL PLAIN authentication failed: authentication failure
 
Old 11-17-2015, 07:18 PM   #36
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052
Try adding a new system user, start that portion of the tutorial again. Generate the password for the auth string based on that user's system password and user name. Are you sure postfix / sasl are configured to expect plain auth strings? The only other thing I can assume is that something with postfix has changed since that tutorial was written due to new version features and you are using the wrong configuration settings (deprecated).
 
Old 11-17-2015, 11:35 PM   #37
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 14.1 3.18.1
Posts: 294

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by mralk3 View Post
Try adding a new system user, start that portion of the tutorial again. Generate the password for the auth string based on that user's system password and user name. Are you sure postfix / sasl are configured to expect plain auth strings? The only other thing I can assume is that something with postfix has changed since that tutorial was written due to new version features and you are using the wrong configuration settings (deprecated).


I will get back to what you mentioned specifically but I am confused about this;

Quote:
# groupadd -g 200 postfix
# useradd -u 200 -d /dev/null -s /bin/false -g postfix postfix -G mail
# groupadd -g 201 postdrop
I get where it says -g postfix (initial group postfix) but whats the second postfix for?

Also I am unsure of what he means by;

Quote:
"also keep in mind that we need to add user postfix and user cyrus to the same group, mail group that is"
 
Old 11-18-2015, 02:19 AM   #38
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052
Quote:
Originally Posted by BAcidEvil View Post
I get where it says -g postfix (initial group postfix) but whats the second postfix for?
That command is at it should be. You can investigate why by running "man adduser"

Quote:
Originally Posted by BAcidEvil View Post
Also I am unsure of what he means by;
Add the postfix user and the cyrus user to the "mail" group. I googled for a beginner tutorial for you, here it is.
 
Old 12-01-2015, 01:53 PM   #39
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 14.1 3.18.1
Posts: 294

Original Poster
Rep: Reputation: 10
Good Morning;

I have had numerous failings in trying to set up Cyrus/Postfix.. And though I am not giving up on that combination, I am going to attempt a Dovecot/Postfix.

From what I gather I have both Dovecot and Postfix installed correctly but at this point probably not configured correctly, or at least, fully...And I am not disillusioned to believe I am anywhere near that. But...Based on what I gather I should be far enough into this to be able to telnet into myself on either port 110 or 143 from with my network or on the box itself.
I seem to get this;

Quote:
telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
or

Quote:
telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
I can telnet Port 25 and also my specific port from outside so I know connections are open.

When I try and verify dovecot being loaded, I get this;

Quote:
ps ax | grep dovecot
1854 ? Ss 0:00 /usr/sbin/dovecot
1855 ? S 0:00 dovecot/anvil
1856 ? S 0:00 dovecot/log
1858 ? S 0:00 dovecot/config
1860 pts/0 S+ 0:00 grep dovecot
Which means it is indeed loaded from what I gather.

Also I verify my dovecot accepts and sees the user/pass I made;

Quote:
doveadm auth test <user>
And I get verified results.

So I verify open ports and what not get get this;

Quote:
lsof -i :143
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
dovecot 1854 root 36u IPv4 18692 0t0 TCP *:imap (LISTEN)
Quote:
lsof -i :110
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
dovecot 1854 root 23u IPv4 18663 0t0 TCP *op3 (LISTEN)
Quote:
netstat -nat
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:37 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:2122 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:113 0.0.0.0:* LISTEN
tcp 0 0 192.168.0.69:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 160 192.168.0.69:2122 155.70.39.45:39391 ESTABLISHED
tcp 0 0 192.168.0.69:2122 155.70.39.45:30147 ESTABLISHED
Postfix is indeed isntalled and is running, BUT not configured at this point beyond associating with dovecot as SASL.

I would assume at this point though that this is a Port issue and not necessarily a docevot issue? I am not understanding why it gets an automatic refusal/disconnect when the ports are indeed up and "Listening".

Also, the only messages on either in /var/log/* is this;

Quote:
Quote:
Dec 2 09:04:41 houseofm dovecot: master: Dovecot v2.2.19 starting up for imap, pop3, lmtp (core dumps disabled)
Dec 2 09:04:44 houseofm postfix/postfix-script[1992]: starting the Postfix mail system
Dec 2 09:04:44 houseofm postfix/master[1994]: daemon started -- version 3.0.3, configuration /etc/postfix

Last edited by BAcidEvil; 12-02-2015 at 10:09 AM. Reason: Modify
 
Old 12-02-2015, 11:45 PM   #40
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 14.1 3.18.1
Posts: 294

Original Poster
Rep: Reputation: 10
All good thus far.

Last edited by BAcidEvil; 12-04-2015 at 09:19 AM.
 
Old 12-12-2015, 06:28 PM   #41
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 14.1 3.18.1
Posts: 294

Original Poster
Rep: Reputation: 10
Ok so here we have it. My Postfix/Dovecot seem to be working well enough..

I can log in both on localhost AND my iPhone and "check/read" email but I can not seem to "Send" it...

I get this error on my /var/log/maillog;

Quote:
Dec 12 10:17:04 HouseofM postfix/smtpd[6322]: NOQUEUE: reject: RCPT from {My iPhone}: 554 5.7.1 <mail-i-am-sending-to>: Relay access denied; from=<mail-i-am-sending-from> to=<mail-i-am-sending-to> proto=ESMTP helo=<[100.84.137.188]>
My iPhone has this message;

Quote:
Cannot Send Mail; The recipient "blah@blah.com" was rejected by the server because it does not allow relaying.
I have really put a lot of effort into this and read instead of ask questions but I am indeed stumped here.. But I did make great progress!
 
Old 12-12-2015, 07:37 PM   #42
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
http://www.postfix.org/SASL_README.html

Since you are using Dovecot, follow the instructions to use it for sasl auth in postfix too.
 
Old 12-14-2015, 01:00 PM   #43
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 14.1 3.18.1
Posts: 294

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by descendant_command View Post
http://www.postfix.org/SASL_README.html

Since you are using Dovecot, follow the instructions to use it for sasl auth in postfix too.

This was indeed covered in my Dovecot resource by Peer Heinlein that I have been reading.... I must be missing something else.
 
Old 12-14-2015, 01:26 PM   #44
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Have you set your phone to authenticate?
 
Old 12-14-2015, 02:06 PM   #45
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 14.1 3.18.1
Posts: 294

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by descendant_command View Post
Have you set your phone to authenticate?

Well it is an iPhone and what I did was;

Under Mail, I added new account. I put in l/p and it does indeed log in as I can check the Inbox as well as receive emails. Under SMTP I have my smtp.domain.org but I do not have SSL Enabled ... I also tried lmtp.domain.org as I had set something with that prior...

It is using Port 25 for smtp server...

I just get this blah.blah.com was rejected by the server.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure an email server that sends email to hotmail with Fedora? acarri Linux - Server 5 03-10-2010 02:05 AM
Web email server from private email server guy_ripper Linux - Server 2 01-17-2008 06:58 AM
Migrating from Lotus Domino Email Server 6.5 to Linux email Server sailu_mvn Linux - Software 0 08-22-2006 11:04 PM
What email program can work with email header on pop3 server TruongAn Linux - Software 0 01-13-2005 11:48 AM
How do I configure postfix master to forward all email to an email server ? hello321_1999 Linux - Software 1 11-18-2004 04:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 04:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration