LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-11-2013, 11:23 AM   #1
Thain
LQ Newbie
 
Registered: Mar 2013
Posts: 3

Rep: Reputation: Disabled
Ok I must be going blind :( Postfix access denied


I'm running Ubuntu server with Postfix and Dovecot, I can send from the server but not from my laptop running Outlook. It returns with the error:

NOQUEUE: reject: RCPT from internet ip: 554 5.7.1 <another@email>: Relay access denied; from=<my@email> to=<another@email> proto=ESMTP helo=<mymachine>

postconf -n is:

alias_database = hash:/etc/aliases.db
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
canonical_maps = hash:/etc/postfix/canonical
config_directory = /etc/postfix
inet_interfaces = all
inet_protocols = ipv4
mailbox_size_limit = 0
mydestination = mailserver.mydomain, Solaris.mydomain, mydomain
mydomain = mydomain
myhostname = Solaris.mydomain
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.1.0/24 80.76.216.74
myorigin = /etc/mailname
queue_directory = /var/spool/postfix
readme_directory = no
recipient_delimiter = +
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = private/auth-client
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_tls_cert_file = /etc/ssl/certs/server.crt
smtpd_tls_key_file = /etc/ssl/private/server.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes

I have done told Outlook "My outgoing server (SMTP)requires authentication"

There is nothing appearing in mail.err.

I have looked and looked and I'm sorry if it seems like your always answering the same question.
 
Old 06-11-2013, 02:27 PM   #2
Leo-G
Member
 
Registered: May 2013
Distribution: Cent OS 6
Posts: 32

Rep: Reputation: Disabled
It's very diff to figure out, Can you check via another email client like thunderbird ?
 
Old 06-12-2013, 02:48 AM   #3
Thain
LQ Newbie
 
Registered: Mar 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Same thing happens in Thunderbird and doesn't matter what email address I'm sending too.
 
Old 06-20-2013, 08:29 AM   #4
jitendra.sharma
Member
 
Registered: Mar 2013
Location: ahmedabad
Distribution: CentOS, Ubuntu, Debian
Posts: 92
Blog Entries: 1

Rep: Reputation: Disabled
Try to check the log in /var/log/maillog. Whats error got in this?
 
Old 06-20-2013, 11:23 AM   #5
gdr
Member
 
Registered: Jun 2013
Distribution: Mint KDE
Posts: 44

Rep: Reputation: Disabled
Looks like you don't have myhostname and mydestination set correctly... Solaris.mydomain doesn't sound like a correct FQDN.

Here's that setting from my system:

Code:
# postconf -n | grep myhost
mydestination = $myhostname, localhost.$mydomain, localhost, mail
myhostname = mail.massivescale.net
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
 
Old 06-21-2013, 04:00 AM   #6
Leoprince
LQ Newbie
 
Registered: Oct 2012
Posts: 14

Rep: Reputation: Disabled
Hi,

I could see that you are using dovecot type sasl. The communication between postfix smtp server and dovecot sasl works in two ways

UNIX-domain socket or over a TCP socket. Please let us know the dovecot version you are using. To check dovecot version simply run the following through command line

dovecot --version

Seems like from your main.cf, You are using UNIX-domain socket.

Also make sure that is a valid path private/auth-client. It is your Postfix queue directory.

>>smtpd_sasl_path = private/auth-client

Please paste your dovecot.conf, try to telnet to hostname port 25

make sure that your hostname is resolvable and having a valid rDNS.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Postfix, realy access denied twallstrom Linux - Server 4 10-25-2012 01:33 PM
Postfix-Relay access denied i_nomad Linux - Newbie 14 05-01-2008 06:01 PM
Postfix: Relay access denied TheZodiac Linux - Server 4 10-24-2007 10:23 AM
postfix: relay access denied cope Linux - Server 1 05-10-2007 01:35 AM
Postfix and Relay access denied jamiguel77 Linux - Software 3 03-12-2005 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:18 AM.

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