Unable to send email through Client

10 posts / 0 new
Last post
#1 Mon, 10/14/2013 - 17:40
prince_mallow

Unable to send email through Client

Hello, I am having problems setting up an email client for the virualmin email accounts.

I've read several different posts on virtualmin.com but either the problem seems unrelated, or doesn't solve the issue.

The client in question is Microsoft Office. I have checked authentication and not checked it and I equally get the same unsuccessful results.

If I attempt to send an email I get this message in Office: Server error: '554 5.7.1 scrubed@emaildomain.com: Relay access denied'

In the server mail logs I get authenitcation failed. I've also verified that I had the right username I've tried everything from: username username.domain username.domain.com so I'm sure I have that base covered.

I was wondering if there was anything else I was missing. In another post they asked the OP to post the results of "postconf -n" so below is mine, however I just noticed something. The mydestination line

mydestination = $myhostname, localhost.$mydomain, localhost, notnameserver.scrubbeddomain.com

The domain at the end of this line for me is the hostname of the server but is not it's nameserver. Could it be that I need to change this to it's nameserver name and not it's hostname??

In pingablility I also get an error for the mail server saying:

Error: There was a problem while talking with the mail server. Got 'SocketTimeoutException: Read timed out'

Additionally I've check if my ISP is blocking port 25, it isn't. The only thing left is I can't seem to figure out what port SMTP is on, but it's a default install on a centos machine.

Any and all help greatly appreciated.

postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
allow_percent_hack = no
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
mailbox_size_limit = 0
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, notnameserver.scrubbeddomain.com
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sender_bcc_maps = hash:/etc/postfix/bcc
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual
Mon, 10/14/2013 - 21:23
andreychek

Howdy,

It's no problem that your hostname isn't a nameserver, that shouldn't be related.

What output does this command produce:

postconf | grep 'mynetworks ='

Two other questions --

Do you see any other errors in your email logs (/var/log/maillog, or /var/log/mail.log)?

And If you use a webmail client such as Usermin or RoundCube, does that work? Or do you continue to have the same problem?

-Eric

Tue, 10/15/2013 - 10:48
prince_mallow

Usermin :20000 works perfectly. I can send and receive email from any of the user email. [Re-verifying statement] Must log in as user.domain (not user.domain.tld) Ability to send: Confirmed Ability to recieve: Confirmed

Client Particularities Able to login to view emails but unable to send. If in the "more settings" -> "Outgoing Servers" the option of "My outgion server (SMPT) requires authentication" is checked and set to "Use same settings as my incoming mail server" then completely unable to log in nor send email.

Error without "My outgiong server (SMTP) requires authentication":

Oct 15 11:07:56 hostname postfix/smtpd[4789]: connect from isp_ip_scrubbed
Oct 15 11:07:56 hostname postfix/smtpd[4789]: NOQUEUE: reject: RCPT from isp_ip_scrubbed: 554 5.7.1 <user@foreigndomain.com>: Relay access denied; from=<user@localdomain.com> to=<user@foreigndomain.com> proto=ESMTP helo=<PCUSERIDSCRUBBED>
Oct 15 11:07:59 hostname postfix/smtpd[4789]: disconnect from isp_ip_scrubbed

Error with "My outgiong server (SMTP) requires authentication":***

Oct 15 11:22:04 hostname dovecot: pop3-login: Login: user=<user.localdomain>, method=PLAIN, rip=buisnessip, lip=serverip, mpid=6722
Oct 15 11:22:04 hostname dovecot: pop3(user.localdomain): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Oct 15 11:22:20 hostname postfix/smtpd[6649]: connect from isp_ip_scrubbed
Oct 15 11:22:20 hostname postfix/smtpd[6649]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
Oct 15 11:22:20 hostname postfix/smtpd[6649]: warning: isp_ip_scrubbed: SASL LOGIN authentication failed: generic failure
Oct 15 11:22:20 hostname postfix/smtpd[6649]: lost connection after AUTH from isp_ip_scrubbed
Oct 15 11:22:20 hostname postfix/smtpd[6649]: disconnect from isp_ip_scrubbed

The client is able to receive email depending on the settings I set.

**SO the second error message kind of clued me in.

I installed csf and ran it's security scanner. They have 70 items which is recommended to be done in order to "Secure" a server. One of them was disabling the SASLAUTHD. I guess this has to be enabled for this to work. Although I see that it works, I have a desire to ask for confirmation that this is the case.

Tue, 10/15/2013 - 12:07
Locutus

Yep, you'd need the saslauthd for Postfix authentication to work.

Tue, 10/15/2013 - 13:34
prince_mallow

Perfect, turns out this was my problem after all. Thanks ^_^

Tue, 10/15/2013 - 13:37
prince_mallow

I'm still getting a "There was a problem while talking with the mail server. Got 'SocketTimeoutException: Read timed out'" error from Pingablity though. Is this solvable?

Tue, 10/15/2013 - 17:05
Locutus

What's "pingability"? What exactly are you testing there?

Wed, 10/16/2013 - 11:28
prince_mallow

pingablility is a website which checks DNS settings on a web domain and reports any errors it perceives.

(There are other posts on this forum which point to errors they receive via pingability)

I submitted my domain to see what errors returns of which it indicates there is an error with the Mail Server, (the error of which I already posted two posts above)

Wed, 10/16/2013 - 11:55
Locutus

So your machine is not reachable from the outside on port 25? Well, you might want to check if Postfix is listening (netstat -tpln | grep :25), if a local firewall is blocking access (iptables -L) or if an external firewall or router is having issues.

For further tests and analysis I'd need to know the actual domain name and IP address in question.

Fri, 10/18/2013 - 13:29
prince_mallow

Netstat command seems alright

My interpretation of iptables seems ok too but that command is really slow, I am assuming it's not suppose to be that slow.

so the ip name is 91.205.232.130

Topic locked