LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-15-2008, 09:29 AM   #1
spokz
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 spokz@mydomain.org and I'm connected to IMAP server at mydomain.org thru Outlook Express. I can send mail to test@mydomain.org but server denies to send mail to test@gmail.com, hotmail.com etc.

Log output:
Quote:
Nov 14 11:20:48 me postfix/smtpd[22501]: connect from localhost[127.0.0.1]
Nov 14 11:20:48 me postfix/smtpd[22501]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 554 5.7.1 <xxx@gmail.com>: Relay access denied; from=<xxx@mydomain.org> to=<xxx@gmail.com> proto=ESMTP helo=<mail.mydomain.org>
Nov 14 11:20:48 me postfix/smtpd[22501]: lost connection after RCPT from localhost[127.0.0.1]
Nov 14 11:20:48 me postfix/smtpd[22501]: disconnect from localhost[127.0.0.1]
postconf -n
Quote:
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:[127.0.0.1]:10024
disable_vrfy_command = yes
inet_interfaces = all
inet_protocols = all
local_recipient_maps = $alias_maps
mailbox_size_limit = 0
mydestination =
mydomain = mydomain.org
myhostname = mail.mydomain.org
mynetworks = 127.0.0.0/8, 192.168.0.0/16, 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 sbl-xbl.spamhaus.org
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/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 51200000
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 5000
virtual_transport = virtual
virtual_uid_maps = static:5000
 
Old 11-15-2008, 04:11 PM   #2
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,318

Rep: Reputation: 124Reputation: 124
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, 09:47 AM   #3
spokz
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...
 
  


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


All times are GMT -5. The time now is 02:11 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration