26 posts / 0 new
Last post
#1 Thu, 02/05/2009 - 16:21
was123

help

ok im running ubuntu 8.04 and virtualmin pro with latest updates on everything. it was installed on fresh os install using the install string on my perchase page. but no matter what i seem to do i cant get mail in or out and when i try to setup outlook express i always get error trying to check mail.

There was a problem logging onto your mail server. Your Password was rejected. Account: 'mail.xxxxxxx.com', Server: 'mail.xxxxxxx.com', Protocol: POP3, Server Response: '-ERR Login failed.', Port: 110, Secure(SSL): No, Server Error: 0x800CCC90, Error Number: 0x800CCC92

password i am using is correct.

any help would be really apreciated...

Thu, 02/05/2009 - 16:29
andreychek

Hrm... if you log in over SSH, and edit /etc/dovecot/dovecot.conf, do you see a parameter named "disable_plaintext_auth"?

There should be a line in there that reads:

disable_plaintext_auth = no

However, that sometimes seems to be either set to "yes", or just commented out.

If you set that to "no", save the file, and restart Dovecot:

/etc/init.d/dovecot restart

And hopefully that should work!

Though if it does, that means the installer is missing that step and needs to be corrected. I'll yell at Joe for you :-)
-Eric

Thu, 02/05/2009 - 16:33 (Reply to #2)
was123

thats one of the things i did fix based on all my reading it was default yes and had the # infront of it.

but yes i have tried that.

Thu, 02/05/2009 - 16:37 (Reply to #3)
andreychek

Okay, and you did restart Dovecot afterwards, right?

Also, the other place to look is in /var/log/mail.log and /var/log/auth.log.

Whenever you attempt to use Outlook, what errors appear in those log files?
-Eric

Thu, 02/05/2009 - 16:45 (Reply to #4)
was123

i think i might just have it. if im correct the forum email just went trough that email server.

Thu, 02/05/2009 - 16:59 (Reply to #5)
was123

ok mail wont go out now the outgoing mail times out comunicating with the server.

Thu, 02/05/2009 - 17:08 (Reply to #6)
andreychek

It sounds like your ISP probably blocks outgoing port 25.

Your options are:

1. Use your ISP's SMTP server as a mail relay, rather than attempting to connect to your Virtualmin server for sending email.

2. Enable SMTPS and/or Submission within Postfix, and connect to your server on port 465 or 587. You'd enable those by logging into Virtualmin, and clicking Webmin -> Servers -> Postfix -> SMTP Authentication And Encryption, and making sure "Enable SASL SMTP authentication" and "Enable TLS encryption" are enabled, then restart Postfix.
-Eric

Thu, 02/05/2009 - 17:12 (Reply to #7)
was123

na its not isp blocked this isnt the first server i have had i have static ip and everything open to me. maybe i have a bad setup on name services?

Thu, 02/05/2009 - 17:14 (Reply to #8)
was123

Enable SASL SMTP authentication is already set to yes could this be a problem?

Thu, 02/05/2009 - 17:17 (Reply to #9)
was123

also i am not getting mail in either just outlook is connecting and checking the server now.

Thu, 02/05/2009 - 17:18 (Reply to #10)
Joe
Joe's picture

What's in the maillog/mail.log?

--

Check out the forum guidelines!

Thu, 02/05/2009 - 17:24 (Reply to #11)
was123

Feb 5 22:21:32 ubuntu postfix/smtpd[1749]: fatal: parameter "smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit
Feb 5 22:21:33 ubuntu postfix/master[28487]: warning: process /usr/lib/postfix/smtpd pid 1749 exit status 1
Feb 5 22:21:33 ubuntu postfix/master[28487]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling

Thu, 02/05/2009 - 17:28 (Reply to #12)
Joe
Joe's picture

There you go!

So, you've got a broken smtpd_recipient_restrictions directive, causing Postfix to completely choke.

Mine looks like this:

smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination

--

Check out the forum guidelines!

Thu, 02/05/2009 - 17:31 (Reply to #13)
Joe
Joe's picture

Also note that there are two topics going on in this thread...One of which is sending mail through your server using a mail client (which would involve Postfix), and the other is retrieving mail via POP or IMAP (which would involve Dovecot). Keeping the two problems separate is probably wise, since you wouldn't want to be chasing a Dovecot problem by sending mail, or chasing a Postfix problem by retrieving mail.

--

Check out the forum guidelines!

Thu, 02/05/2009 - 17:30 (Reply to #14)
andreychek

Alright, it looks like Postfix is having a fit about something.

Would you mind if I logged in and took a peek at it?

If that's okay, you can enable remote access using the Virtualmin support module:

http://www.virtualmin.com/documentation/id,support_requests_and_remote_l...

Or you could email me your root login details to eric@virtualmin.com -- if you do that, be sure to include a link to this forum thread in the message body.
-Eric

Thu, 02/05/2009 - 17:31 (Reply to #15)
andreychek

Looks like Joe beat me to it! I'd try his suggestion first ;-)
-Eric

Thu, 02/05/2009 - 17:32 (Reply to #16)
was123

<b>andreychek wrote:</b>
<div class='quote'>Hrm... if you log in over SSH, and edit /etc/dovecot/dovecot.conf, do you see a parameter named &quot;disable_plaintext_auth&quot;?

There should be a line in there that reads:

disable_plaintext_auth = no

However, that sometimes seems to be either set to &quot;yes&quot;, or just commented out.

If you set that to &quot;no&quot;, save the file, and restart Dovecot:

/etc/init.d/dovecot restart

And hopefully that should work!

Though if it does, that means the installer is missing that step and needs to be corrected. I'll yell at Joe for you :-)
-Eric</div>
ill drop you a email.

Thu, 02/05/2009 - 17:37 (Reply to #17)
was123

<b>andreychek wrote:</b>
<div class='quote'>Hrm... if you log in over SSH, and edit /etc/dovecot/dovecot.conf, do you see a parameter named &quot;disable_plaintext_auth&quot;?

There should be a line in there that reads:

disable_plaintext_auth = no

However, that sometimes seems to be either set to &quot;yes&quot;, or just commented out.

If you set that to &quot;no&quot;, save the file, and restart Dovecot:

/etc/init.d/dovecot restart

And hopefully that should work!

Though if it does, that means the installer is missing that step and needs to be corrected. I'll yell at Joe for you :-)
-Eric</div>
here`s what i got.
<div class='quote'>smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated
mydestination = $myhostname, localhost.$mydomain, localhost, ubuntu
myorigin = $mydomain
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
canonical_maps = hash:/etc/postfix/canonical
</div>

Thu, 02/05/2009 - 17:45 (Reply to #18)
Joe
Joe's picture

smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated

Yes, you're missing some sort of &quot;what happens then?&quot;

You need a reject_unauth_destination in there.

--

Check out the forum guidelines!

Thu, 02/05/2009 - 17:54 (Reply to #19)
andreychek

Yeah, Joe was exactly right, the Postfix config was just missing that one parameter at the end of the smtpd_recipient_restrictions line.

Why was it missing? I'm not really sure, it's generally added by default. But it's there now :-)

I also verified that Dovecot was working, so you should be in good shape!
-Eric

Thu, 02/05/2009 - 17:43 (Reply to #20)
was123

emails sent eric.

holler at me ill be around other the running to get wife in a few which i will only be gone about 15 minutes.

Thu, 02/05/2009 - 18:20 (Reply to #21)
was123

ok so now when trying to send i get.

<div class='quote'>The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'admin@xxxxxx.org'. Subject 'test', Account: 'was123@xxxxx.com', Server: 'mail.xxxxxx.com', Protocol: SMTP, Server Response: '554 5.7.1 &lt;admin@xxxxxx.org&gt;: Relay access denied', Port: 25, Secure(SSL): No, Server Error: 554, Error Number: 0x800CCC79</div>

Thu, 02/05/2009 - 18:24 (Reply to #22)
was123

ok i also tried sending a email to the addresses setup on the server and got mail returned.

Host or domain name not found. Name service
error for name=localdomain type=A: Host not found

Thu, 02/05/2009 - 18:42 (Reply to #23)
Joe
Joe's picture

<div class='quote'>Host or domain name not found. Name service
error for name=localdomain type=A: Host not found </div>

So, you said you installed using install.sh, right? I'm confused how you have all of these misconfigurations! None of this should have been possible (well, there is that one bug on Ubuntu where Dovecot doesn't get it's plain password directive set right, but all the rest of this should have been right after the install). ;-)

Anyway, <i>this</i> problem is happening because your box doesn't have a correctly configured fully qualified domain name. The install script should have refused to run in such a circumstance.

--

Check out the forum guidelines!

Thu, 02/05/2009 - 18:44 (Reply to #24)
was123

now we are starting to talk along the lines i was thinking of.
just seemed like there were domain issues.

Thu, 02/05/2009 - 20:25 (Reply to #25)
was123

andreychek is the man....

many many thanks to you and if i can ever help you just holler!!!!!!

Topic locked