Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Postfix Relay Control
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Narusegawa
Apprentice
Apprentice


Joined: 29 Jun 2004
Posts: 210
Location: Bimringham, UK

PostPosted: Wed Jan 10, 2007 5:24 pm    Post subject: [SOLVED] Postfix Relay Control Reply with quote

I've recently moved my webmail interface to a different server than postfix is on. mynetworks_style was set to host. So now I've commented that out, set mynetworks to a coma sperated list containing both the local server and the webmail server and still users get a 554 relay access denied error when sending emails from SquirrelMail. I've even set it to pop before smtp which should solve the problem.

Any suggestions?
_________________
WARNING: It is a violation of federal law to use me in a way inconsistent with my labelling. I am dangerous to humans and domestic animals. Please avoid contact with your eyes and clothing. I should be stored out of the reach of children.


Last edited by Narusegawa on Thu Jan 11, 2007 4:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
Dan
Veteran
Veteran


Joined: 25 Oct 2005
Posts: 1302

PostPosted: Wed Jan 10, 2007 8:31 pm    Post subject: Reply with quote

you probably need to add the webmail server to relay access on postfix (mynetworks) parameter
_________________
- Failure is not an option. It's bundled with your software.
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Thu Jan 11, 2007 8:06 am    Post subject: Reply with quote

Sounds like there may be a conflict with an smtpd_x_restriction in main.cf.
Back to top
View user's profile Send private message
Narusegawa
Apprentice
Apprentice


Joined: 29 Jun 2004
Posts: 210
Location: Bimringham, UK

PostPosted: Thu Jan 11, 2007 4:26 pm    Post subject: Reply with quote

postconf -n
Code:
alias_database = hash:/etc/mail/aliases
alias_maps = hash:/etc/mail/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 2
default_rbl_reply = $rbl_code Service unavailable; $rbl_class [$rbl_what] blocked using $rbl_domain${rbl_reason?; $rbl_reason}
disable_vrfy_command = yes
home_mailbox = virtual
html_directory = /usr/share/doc/postfix-2.2.10/html
inet_interfaces = all
local_destination_concurrency_limit = 2
local_transport = virtual
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination =
mydomain = mydomain.co.uk
myhostname = mail1.mydomain.co.uk
mynetworks_style = host
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.2.10/readme
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_data_restrictions = reject_unauth_pipelining, permit
smtpd_helo_required = yes
smtpd_helo_restrictions = reject_invalid_hostname, reject_unknown_hostname, reject_non_fqdn_hostname
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, check_relay_domains, reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdnsender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_destination, reject_rbl_client relays.ordb.org, reject_rbl_client list.dsbl.org, reject_rbl_client sbl.spamhaus.org, reject_rbl_client cbl.abuseat.org,  reject_rbl_client dul.dnsbl.sorbs.net, reject_rhsbl_sender dsn.rfc-ignorant.org, reject_rhsbl_sender bogusmx.rfc-ignorant.org, reject_rhsbl_sender postmaster.rfc-ignorant.org, reject_rhsbl_sender abuse.rfc-ignorant.org, reject_rhsbl_sender whois.rfc-ignorant.org,  permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/etc/postfix/mysql/virtual_alias_maps.cf
virtual_create_maildirsize = yes
virtual_gid_maps = static:1003
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql/virtual_domains_maps.cf
virtual_mailbox_limit = 51200000
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql/virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_mailbox_maps = mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf
virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
virtual_minimum_uid = 1003
virtual_overquota_bounce = yes
virtual_transport = virtual
virtual_uid_maps = static:1003


If that helps figure it out?

Mailserver is mail1.mydomain.co.uk whereas the webmail server is server2.mydomain.co.uk

I did have
Code:
mynetworks = mail1.mydomain.co.uk, server2.mydomain.co.uk
and commented mynetworks_style as an attempt to get it working however that failed too.
_________________
WARNING: It is a violation of federal law to use me in a way inconsistent with my labelling. I am dangerous to humans and domestic animals. Please avoid contact with your eyes and clothing. I should be stored out of the reach of children.
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Thu Jan 11, 2007 4:52 pm    Post subject: Reply with quote

I don't think hostnames are anything to do with networks as far as Postfix is concerned. Use IP addresses and see how that goes.
Back to top
View user's profile Send private message
Narusegawa
Apprentice
Apprentice


Joined: 29 Jun 2004
Posts: 210
Location: Bimringham, UK

PostPosted: Thu Jan 11, 2007 4:57 pm    Post subject: Reply with quote

IP address seems to work, sweet! Thanks for that one. I just assumed a hostname was valid or an IP was valid.
_________________
WARNING: It is a violation of federal law to use me in a way inconsistent with my labelling. I am dangerous to humans and domestic animals. Please avoid contact with your eyes and clothing. I should be stored out of the reach of children.
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Thu Jan 11, 2007 6:40 pm    Post subject: Reply with quote

I'm glad that sorted it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum