Click to See Complete Forum and Search --> : Postfix --Please Help (confused)


Rick_R
03-28-2002, 02:16 AM
Im running postfix and qpopper on my server.
I can login and check mail fine from outside of my domain but, I cannot send mail to outside of my domain. In other words...
Lets say I login from a friends house setup a new outlook account to check my email.That will work fine but, while Im connected to my email server and want to send mail to someone other than the my servers domain I cannot do that. which lines in the main.cf do I need to edit for this to work. An example would be very appreciated. Im new to this and Im not sure about the relay host or relay domain or if thats what I even need to do.
thankyou

PLBlaze
03-28-2002, 03:09 AM
Your postfix MTA is denying mail relaying from any domain other than localhost or the one you configured in main.cf, that's my guess...

Since you did not mention the error or any of your config parameters it's hard diagnose this...what does postconf -n show?

Rick_R
03-28-2002, 01:18 PM
I ll have to check. The error from outlook is Server Response 554 Relay Access Denied.
What line would I have to edit in the main.cf to fix this.

PLBlaze
03-28-2002, 02:23 PM
I was right, it's relaying then...as i said before without seeing output of your postconf -n is hard to come with answer:


You have to define relaydomains = foo.bar, 1.2.3.4 #either FQDN or numeric

Taken from main.cf:


# The relay_domains parameter restricts what clients this mail system
# will relay mail from, or what destinations this system will relay
# mail to. See the smtpd_recipient_restrictions restriction in the
# file sample-smtpd.cf for detailed information.
#
# By default, Postfix relays mail
# - from "trusted" clients whose IP address matches $mynetworks,
# - from "trusted" clients matching $relay_domains or subdomains thereof,
# - from untrusted clients to destinations that match $relay_domains
# or subdomains thereof, except addresses with sender-specified routing.
# The default relay_domains value is $mydestination.
#
# In addition to the above, the Postfix SMTP server by default accepts mail
# that Postfix is final destination for:
# - destinations that match $inet_interfaces,
# - destinations that match $mydestination
# - destinations that match $virtual_maps.
# These destinations do not need to be listed in $relay_domains.
#
# Specify a list of hosts or domains, /file/name patterns or type:name
# lookup tables, separated by commas and/or whitespace. Continue
# long lines by starting the next line with whitespace. A file name
# is replaced by its contents; a type:name table is matched when a
# (parent) domain appears as lookup key.
#
# NOTE: Postfix will not automatically forward mail for domains that
# list this system as their primary or backup MX host. See the
# permit_mx_backup restriction in the file sample-smtpd.cf.
#
#relay_domains = $mydestination

# INTERNET OR INTRANET

# The relayhost parameter specifies the default host to send mail to
# when no entry is matched in the optional transport(5) table. When
# no relayhost is given, mail is routed directly to the destination.
#
# On an intranet, specify the organizational domain name. If your
# internal DNS uses no MX records, specify the name of the intranet
# gateway host instead.
#
# In the case of SMTP, specify a domain, host, host :port, [host] :port,
# [address] or [address] :port; the form [host] turns off MX lookups.
# If you specify multiple SMTP destinations, Postfix will try them
# in the specified order.
#
# If you're connected via UUCP, see also the default_transport parameter.
#
# relayhost = $mydomain
# relayhost = gateway.my.domain
# relayhost = uucphost
# relayhost = [an.ip.add.ress]


Read thru this and configure as needed...restart postfix and test.Of course you can read more on www.postfix.org (http://www.postfix.org) or check groups.google.com for postfix group and search thru it...hopethis helps.

Rick_R
03-29-2002, 10:44 PM
Thanks alot man, The light finally came on.
Its working now.