Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 11-15-2008, 08:29 AM   #1
LQ Newbie
Registered: May 2008
Location: Poland
Distribution: Debian
Posts: 13

Rep: Reputation: 0
Relay access denied while sending from external mail clients

I have configured mail server (postfix/courier-imap) and webmail works fine.

But I want to connect to my IMAP server from any location thru mail clients like OE/Thunderbird and send/receive mails. Actually, now I can receive all mail thru OE but sending works only to local maildirs (located at same server as postfix is run).

For example my mail is and I'm connected to IMAP server at thru Outlook Express. I can send mail to but server denies to send mail to, etc.

Log output:
Nov 14 11:20:48 me postfix/smtpd[22501]: connect from localhost[]
Nov 14 11:20:48 me postfix/smtpd[22501]: NOQUEUE: reject: RCPT from localhost[]: 554 5.7.1 <>: Relay access denied; from=<> to=<> proto=ESMTP helo=<>
Nov 14 11:20:48 me postfix/smtpd[22501]: lost connection after RCPT from localhost[]
Nov 14 11:20:48 me postfix/smtpd[22501]: disconnect from localhost[]
postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = amavis:[]:10024
disable_vrfy_command = yes
inet_interfaces = all
inet_protocols = all
local_recipient_maps = $alias_maps
mailbox_size_limit = 0
mydestination =
mydomain =
myhostname =
mynetworks =,, localhost, localhost.$mydomain, $mydomain, mail.@mydomain
myorigin = /etc/mailname
receive_override_options = no_address_mappings
recipient_delimiter = +
relayhost =
show_user_unknown_table_name = no
smtp_use_tls = no
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_client_restrictions = reject_rbl_client
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_etrn_restrictions = reject
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = no
smtpd_sasl_local_domain =
smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_sender_domain, reject_non_fqdn_sender, permit
smtpd_use_tls = no
strict_rfc821_envelopes = yes
virtual_alias_maps = mysql:/etc/postfix/
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = mysql:/etc/postfix/
virtual_mailbox_limit = 51200000
virtual_mailbox_maps = mysql:/etc/postfix/
virtual_minimum_uid = 5000
virtual_transport = virtual
virtual_uid_maps = static:5000
Old 11-15-2008, 03:11 PM   #2
Senior Member
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
When you send mail using an email client you send it from your computer not from your mail-server.
So gmail's mailserver receives a mail with senders domain not equal to the ip it is sent from. This is to prevent spam, you normally use your ISP's mailserver as smtp.
Now I don't know what OE is, maybe it is something that should do the trick I don't really know. Just my 2 cents...
Old 11-16-2008, 08:47 AM   #3
LQ Newbie
Registered: May 2008
Location: Poland
Distribution: Debian
Posts: 13

Original Poster
Rep: Reputation: 0
OE = Outlook Express, since I wanted to use my mail server from any locations, also Windows environments Hmm, that's a pity that even with IMAP server I cannot send mail to other hosts than local. Or I can't configure it properly that's why I posted here...


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
550 5.0.0 Access denied when sending mail using sendmail sheringp Linux - Server 3 10-18-2012 08:07 PM
Postfix Relay access denied outgoing mail alitrix Linux - Server 2 06-14-2008 03:38 PM
Postfix: Relay access denied whenever sending e-mail Doug52392 Linux - Server 1 11-11-2007 04:21 AM
Postfix as a mail relay (getting relay access denied) hypexr Linux - Software 3 09-13-2005 07:15 PM
sending emails from Kmail - relay access denied solar1951 Linux - Networking 6 05-30-2005 11:04 AM > Forums > Linux Forums > Linux - Server

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

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