LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 04-07-2011, 03:02 PM   #16
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781

Hey your making progress! Now, onward:
Quote:
try to send mails from my gmail account to my mailserver it returns: Relaying denied.
When Postfix receives an incoming message, it must decide its disposition. The choice is governed by a couple of factors, but boils down to this:
1 - is the message for one of my recipient domains. If so, receive the message and process it via the chosen delivery message. If not, then
2 - Is the message being sent from either: mynetworks or from an SASL authenticated user? If the answer is yes at this point, the message will be sent out or relayed via your relay host. If the answer is no, the message will be rejected with relay-access denied.

In your case, the messages are inbound from gmail and hence should be delivered, via your courier POP/IMAP.

There are two things I can think of that govern the control of this process: the mydestination and your recipient restrictions, which should include things like mydestination. Have a look at the following documentation to see if that helps: http://www.postfix.org/BASIC_CONFIGU...#mydestination. The situation can also be a little more difficult if you have virtual addressing for your recipients. If necessary, bypass that and specify either mailbox or maildir format.

I would also suggest that you will want to look in your mail log (/var/log/mail.log) and you can even "tail -f" it to watch what it thinks the recipient information is. With what you are facing, this will probably have the key information you need.

Once you get to this step, you will then need to focus on your courier delivery. A good test method at this point would be to telnet into your system, which you can do via localhost, or via a system that you can remotely work from via SSH. If you can telnet in from a remote host, you can also debug the delivery to local mail, like your current task.
 
  


Reply



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
Postfix issue PankajRasuni Linux - Software 1 04-18-2010 11:06 AM
Postfix issue ; Must issue a STARTTLS command first after forcing TLS sarajevo Linux - Server 3 05-14-2009 08:28 AM
Postfix Issue mukundmurari Linux - Security 2 10-29-2007 08:39 AM
Postfix Issue Grook93 Linux - Server 3 08-12-2006 04:48 AM
postfix issue sixth_sense Linux - Networking 5 04-23-2004 02:06 PM

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

All times are GMT -5. The time now is 02:55 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