LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 02-10-2005, 12:43 PM   #1
newtommy
Member
 
Registered: Feb 2005
Location: Baltimore, Maryland
Distribution: SuSE 9.2 Professional
Posts: 38

Rep: Reputation: 15
Postfix problem (also using Cyrus IMAP)


Hi,

Thanks for reading this - I'm hoping someone out there can help me out. I havn't had luck searching the web for a solution. Here's my situation:

Running SuSE9.2 Linux, with Postfix installed and working for shell accounts. So I can send and receive mail anywhere when I am logged in and say using PINE.

Added CYRUS IMAP support for a new Squirrelmail implementation which is working nicely from the Web. I can send/receive mail normally when using Squirrelmail with my IMAP connection (Squirrelmail server is also located on the same box as my IMAP and Postfix)

Here's the problem:: When another computer on my local network wants to send mail from a mail program located off the server and connected to my IMAP, it can only send mail to local users! When I try to send mail to any user not hosted on my linux box I get an "unknown user" error and SMTP refuses to deliver the message to outside people. (how can it know they're unknown!)

So for example - using the normal mail application on a Macintosh on my network, I can receive all messages sent to me (which are delivered via IMAP) but can only send mail to people with accounts on my linux box.

Any idea how to fix this? I'm sure it has to do with some settings in postfix.?
also by the way I have MyNetworks = 192.168.1.1/70 , 127.0.0.1/7 so the Mac is within the networks defined in main.cf

Thanks, I really apprecaite any help you can offer.

Sincerely,
Tom
 
Old 02-10-2005, 12:58 PM   #2
[GOD]Anck
Member
 
Registered: Dec 2003
Location: The Netherlands
Distribution: Slackware
Posts: 171

Rep: Reputation: 33
Please post your postfix/main.cf.. I'd be happy to take a look.
 
Old 02-10-2005, 01:52 PM   #3
newtommy
Member
 
Registered: Feb 2005
Location: Baltimore, Maryland
Distribution: SuSE 9.2 Professional
Posts: 38

Original Poster
Rep: Reputation: 15
Apologies for the delay - Here is main.cf, Again thanks for the help:

Main.cf:
-------------------
queue_directory = /var/spool/postfix

command_directory = /usr/sbin

daemon_directory = /usr/lib/postfix

mail_owner = postfix

myhostname = gandalf.bostonst.com

mydomain = bostonst.com

myorigin = $mydomain

inet_interfaces = all
local_recipient_maps =

unknown_local_recipient_reject_code = 550



mynetworks = 192.168.1.1/300 , 127.0.0.1/8


debug_peer_level = 3

debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail

newaliases_path = /usr/bin/newaliases


mailq_path = /usr/bin/mailq


setgid_group = maildrop


html_directory = /usr/share/doc/packages/postfix/html


manpage_directory = /usr/share/man

sample_directory = /usr/share/doc/packages/postfix/samples


readme_directory = /usr/share/doc/packages/postfix/README_FILES
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient

program_directory = /usr/lib/postfix

masquerade_domains =
mydestination = $myhostname, localhost.$mydomain, $mydomain
defer_transports =
disable_dns_lookups = no
relayhost =
mailbox_command =
mailbox_transport = cyrus
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = no
smtpd_use_tls = no
smtp_use_tls = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000
 
Old 02-10-2005, 03:16 PM   #4
[GOD]Anck
Member
 
Registered: Dec 2003
Location: The Netherlands
Distribution: Slackware
Posts: 171

Rep: Reputation: 33
First off, I think you may have a typo in mynetworks = 192.168.1.1/300 , 127.0.0.1/8, as /300 isn't a valid network.

But for the real problem, I think you will need to set the relayhost parameter. It tells Postfix where it should send e-mail that is not destined for local machines. Specifying your ISP's SMTP server ip or DNS name should do the trick.

Remember to set up some security measures to prevent outsiders from sending e-mail through your Postfix server... this is a good HOWTO that will help you set up SMTP AUTH: http://postfix.state-of-mind.de/patr...tter/smtpauth/

Good luck.

Last edited by [GOD]Anck; 02-10-2005 at 03:29 PM.
 
Old 02-10-2005, 03:40 PM   #5
newtommy
Member
 
Registered: Feb 2005
Location: Baltimore, Maryland
Distribution: SuSE 9.2 Professional
Posts: 38

Original Poster
Rep: Reputation: 15
Hi,

Thanks for the pointers - I think what you're saying about relay host makes a lot of sense to me with your explanation. Also thanks for the security pointer - that was my next thing to attack in getting this stuff up and running.

Kind Regards,
Tom
 
  


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
postfix & cyrus IMAP config kernelvn Linux - Networking 0 07-11-2005 12:03 AM
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 08:01 PM
Cyrus IMAP/Postfix novaprime Linux - Networking 0 01-19-2005 03:28 AM
Mail Server: Cyrus IMAP/Postfix novaprime Linux - Software 1 01-17-2005 12:29 PM
postfix and cyrus-imap Keo-Ken Linux - Newbie 1 07-25-2004 06:27 AM


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