Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Jul 22, 2014 7:58 pm 
Offline
Junior Member

Joined: Tue Jul 22, 2014 7:38 pm
Posts: 24
Ok so to start off, I am yet another linux n00b (relatively).
My issue is that I can't get any third party software (in my case thunderbird) to connect to the server.
I've been at this for about two weeks now off and on, and well, It's time to ask for more help lol

I've gone through this set of instructions.
https://library.linode.com/email/postfi ... 0.19-mysql

I tried testing the ports as per some suggestions I've read.
Telnet and OpenSSH both worked for Imap and Pop3 via console (putty).
I have a firewall as per the "securing your server" guide, using iptables. (https://library.linode.com/email/postfi ... 0.19-mysql)

Aaaaaand this is the long and short of it..

nonetforyou.com is the domain, if that can come in handy.

I will love forever anyone who can help me fix my mess. :)

Dave

Edits:
Make sure you have the correct ports enabled in your iptables firewall.
Some ISP providers block port 25. Add another port for receiving mail into your SMTP. The server will still need to listen on port 25 to receive from the outside world.
(Don't forget to modify your iptables and configs to allow for the ports)
smtpd pass - - - - - smtpd <--- This line needs to be enabled in post fix's config file.

You're welcome :)


Last edited by Methlon on Sat Aug 09, 2014 7:06 pm, edited 6 times in total.

Top
   
PostPosted: Wed Jul 23, 2014 6:54 am 
Offline
Senior Member

Joined: Mon Jan 02, 2012 12:45 pm
Posts: 365
How are you trying to connect via IMAP? SSL or no SSL? I see that you have IMAP listening on port 993 (IMAP with SSL) and not 143 (IMAP without SSL).

Is it possible that it's a config issue on your end in Thunderbird?


Top
   
PostPosted: Wed Jul 23, 2014 6:31 pm 
Offline
Junior Member

Joined: Tue Jul 22, 2014 7:38 pm
Posts: 24
I'm trying to log in with SSL.

I downloaded Dreammail because it actually gives error reports, but requires me to use only Pop3

I now have username and password error.. which should not be the case anyways.
thisbetheaddress@xxxx.com as an example user name. It shows in the sql database as it's in there, but I suppose I could have fat fingered a key.. Though I doubt it, as I cut and pasted from a separate file to make sure what I had entered matched.

Ah well, I guess now I have to figure out how'n the antarctic I'm going to change that string of data lol

I'll keep this updated for the next "me" that comes along.

(I suppose I could give postfixadmin and phpmyadmin a try..)

Thanks so far, for the reply!
Truly appreciated!


Last edited by Methlon on Sun Aug 03, 2014 2:33 pm, edited 1 time in total.

Top
   
PostPosted: Fri Jul 25, 2014 12:46 am 
Offline
Junior Member

Joined: Tue Jul 22, 2014 7:38 pm
Posts: 24
[Derail from objective. Snipping.]


Last edited by Methlon on Mon Jul 28, 2014 7:11 pm, edited 1 time in total.

Top
   
PostPosted: Mon Jul 28, 2014 7:09 pm 
Offline
Junior Member

Joined: Tue Jul 22, 2014 7:38 pm
Posts: 24
Well, I'm still at it. lol
The documentation has changed a bit since I first set it up. I went through much of the setup process again.
I think I've narrowed it down to this:

!include conf.d/\*.conf

When trying to use doveadm per troubleshooting to see if it recognizes an email address, I get this.

root@whateverconsolestuff: doveadm user notreallythemail@xxxx.com
doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 2: No matches

I get the same thing if I use "doveadm user myuser"

Here are the first 4 lines.

# Enable installed protocols
!include conf.d/\*.conf
!include_try /usr/share/dovecot/protocols.d/*.protocol
protocols = imap pop3 lmtp

Guide link: https://www.linode.com/docs/email/email ... g-packages
Troubleshooting link: https://www.linode.com/docs/email/postf ... redentials

Any thoughts out there, internets?
I should have some heavy metal going when I head bang. Not silence and a desk. lolisuckatlinux

Ps: If I remove all the peculiar \'s that appeared in the re-write, I get this stuff.

# doveadm user myuser
doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf (<-- this doesn't work, btw.)
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:9: ssl_cert_file has been replaced by ssl_cert = <file
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:10: ssl_key_file has been replaced by ssl_key = <file
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:12: namespace private {} has been replaced by namespace { type=private }
doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 23: Unknown setting: global_script_path

-- Changing more things, including the location of the SSL stuff to the actual file location, which wasn't listed in documentation removed the :9 and :10 errors.
line 12, and 23, I don't know what to do with.

line 12: namespace private {
separator = .
prefix = INBOX.
inbox = yes
}

protocol lda {
Line 23: log_path = /home/vmail/dovecot-deliver.log
auth_socket_path = /var/run/dovecot/auth-master
postmaster_address = postmaster@xxxx.com
mail_plugins = sieve
global_script_path = /home/vmail/globalsieverc
}

Thanks!
Dave


Last edited by Methlon on Sun Aug 03, 2014 2:34 pm, edited 2 times in total.

Top
   
PostPosted: Tue Jul 29, 2014 8:09 pm 
Offline
Junior Member

Joined: Tue Jul 22, 2014 7:38 pm
Posts: 24
Still at it...

doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:34: auth_user has been replaced by service auth { user }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:36: passdb sql {} has been replaced by passdb { driver=sql }
doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:40: userdb static {} has been replaced by userdb { driver=static }

I have NO idea what these are supposed be to change to.
I do not know what the syntax is. I needa see it.

I've tried the dovecot doveadm -n or whatever for the new config file, which I can no longer remember, or find, because I'm looking for it... so that's not an option.
It's all completely useless until I can at least get past this syntax, and there's no example config files anywhere that I've looked.

HALP HALP HALP


Top
   
PostPosted: Wed Jul 30, 2014 8:06 pm 
Offline
Junior Member

Joined: Tue Jul 22, 2014 7:38 pm
Posts: 24
And pressing onward... by commenting out a lot of error'd fields, I was able to run the command to get a new configuration file.
Dovecot seems to be working, but now I can't SMTP.. Like it's not there.

I'll try messing with the port 25 thing later when I have more time, but for now, it seems like it's more broken stuff.

Edit -- Yea that was that problem... Now for the next mess...
Nothing I send get's received.

Jul 30 20:23:56 hostname dovecot: lmtp(25642, contact@xxxx.com): Error: user thisistheaccount@xxxx.com: Initialization failed: Namespace 'INBOX.': mkdir(/home/vmail/xxxx.com/contact/Maildir) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +w perm: /home, dir owned by 0:0 mode=0755)


Last edited by Methlon on Sun Aug 03, 2014 2:35 pm, edited 1 time in total.

Top
   
PostPosted: Thu Jul 31, 2014 6:17 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
Methlon wrote:
Jul 30 20:23:56 hostname dovecot: lmtp(25642, contact@nonetforyou.com): Error: user thisistheaccount@nonetforyou.com: Initialization failed: Namespace 'INBOX.': mkdir(/home/vmail/nonetforyou.com/contact/Maildir) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +w perm: /home, dir owned by 0:0 mode=0755)


The directory has the wrong owner (owned by root).

_________________
/ Peter


Top
   
PostPosted: Thu Jul 31, 2014 7:10 pm 
Offline
Junior Member

Joined: Tue Jul 22, 2014 7:38 pm
Posts: 24
Thanks for the reply :)

I'm still lost, though.

The only thing I can notice is that it's trying to go to /home/var instead of /var, which is owned by vmail as per linodes instructions.
/home itself, of course is going to be owned by the root user. /home is not specified in the config files...
(mail_location = maildir:/var/mail/vhosts/%d/%n)

I tried setting the ownership of /var and all that to root (through winscp, because I don't know how to console), but there was no change, so best I figure (in my ignorant to all this mind) is my problem lies with that.

I've no idea how to handle that. Unless your solution was simply too simple for to understand. lol
(I did try setting the config user to root, also. No change.)


Top
   
PostPosted: Sun Aug 03, 2014 1:46 pm 
Offline
Junior Member

Joined: Tue Jul 22, 2014 7:38 pm
Posts: 24
Well... I'm working now. (At least pop 3. Imap still sucks, but I just won't use Imap.)
I have no idea what I did, but I did that, and then re-re-re-re-configure my email client (after making some port changes)

Last things I typed was this.
chgrp vmail /etc/dovecot/dovecot.conf
chmod g+r /etc/dovecot/dovecot.conf

So in summary, when installing postfix/dovecot, the first thing you want to do is generate the new config format before you start hitting the documentation.
Then you start going on the internet and shoving crap into your console until it works. lol


Top
   
PostPosted: Wed Aug 06, 2014 7:49 pm 
Offline
Junior Member

Joined: Tue Jul 22, 2014 7:38 pm
Posts: 24
Hrm... guess I didn't fix it all.
Had one e-mail somewhere along the way that managed to come in while something worked before I guess I broke it lol.

Now, while I can send perfectly fine going out, I can't get anything from outside (like gmail or aol) to come in.
Error logs aren't showing me anything. (I had to delete them for being too large to load lol and then did not come back, so I nano'd in a blank so the files would exist.) Still empty.

I get this in reply.
<contact@nonetforyou.com>: host nonetforyou.com[23.239.26.130] refused to talk
to me: 421 4.3.2 All server ports are busy

I've port 25'd countless times.
Telnet works.
No idea where to go.
mailq also shows empty.

I'll keep trying, but if anyone out there has any bright ideas, holler.
This is getting a bit grueling now lol


Top
   
PostPosted: Wed Aug 06, 2014 9:49 pm 
Offline
Linode Staff

Joined: Mon Jun 16, 2014 2:27 pm
Posts: 50
Location: Galloway, NJ
Can you provide the output of:

tail -n 100 /var/log/maillog or /var/log/mail.log (not sure which one it's going to be on your configuration)

This ~should~ show where that e-mail's going and why (feel free to censor any of your IPs)

Thanks,

Dave.


Top
   
PostPosted: Thu Aug 07, 2014 6:26 pm 
Offline
Junior Member

Joined: Tue Jul 22, 2014 7:38 pm
Posts: 24
I get nothing. Mine are formatted as mail.log

I'm thinking maybe I should just kinda uninstall and remove everything e-mail related and start over this weekend.
If it's already broken, how can I break it worse right? lol

Thanks,
Dave


Top
   
PostPosted: Thu Aug 07, 2014 9:20 pm 
Offline
Linode Staff

Joined: Mon Jun 16, 2014 2:27 pm
Posts: 50
Location: Galloway, NJ
You could definitely try that, I'm not really sure why this is happening.. Hm. Then again, I don't have a lot of experience with Postfix specifically. I've only used it a few times. I tend to go for Exim.

Let me know how it goes!

Thanks,

Dave.


Top
   
PostPosted: Fri Aug 08, 2014 7:31 pm 
Offline
Junior Member

Joined: Tue Jul 22, 2014 7:38 pm
Posts: 24
Will do for sure.
I'd like to (once I get this resolved) have something handy so that my trouble can fix someone else's problem lol

Might even give Exim a shot, since I've only just now heard of it. ;)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group