Hello I am tring to get incoming email relay working using a transport file 
first off is this the correct way to get email to go from 
some...@gmail.com - using gmail could be anywhere >>> 
m...@tryingtogetincomingrelayworking.com on mx2.mail.com - my relay server >>> 
me@tryingtogetincomingrelayworking on mx1.mail.com - my main mail server 
Something is going wrong and i keep getting this error on the relay server, 
obviously it is stopping mail and i get nothing in the logs for the main 
server. Please help 


Relay access denied; from=<me.myem...@gmail.com> 
to=<m...@tryingtogetincomingrelayworking.com> proto=ESMTP 
helo=<mail-vb0-f46.google.com> 

some details 
m...@tryingtogetincomingrelayworking.com is on the main mail server that we can 
call mx1.mail.com so is a different domain, however with your setup i do not 
think this should matter? Also the real hostname of the relay system is 
ns1.someserver.com, but i have added myhostname = mx2.mail.com to the below to 
main.cf will $domain work like this? 

myhostname = mx2.mail.com 
alias_maps = hash:/etc/aliases 
alias_database = hash:/etc/aliases 
myorigin = /etc/mailname 
#mydestination = ns1.someserver.com mx1.someserver.com, 
localhost.someserver.com, localhost 
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 
mailbox_size_limit = 0 
recipient_delimiter = + 
inet_interfaces = all 
inet_protocols = ipv4 

relayhost = mx1.mail.com 
relay_domains = $mydomain 
virtual_alias_maps = hash:/etc/postfix/virtual 
relay_recipient_maps = hash:/etc/postfix/relay_recipients 
transport_maps = hash:/etc/postfix/transport 

relay_recipients looks like this 
m...@tryingtogetincomingrelayworking.com OK 

my virtual looks like this 
me m...@tryingtogetincomingrelayworking.com 

my transport looks like this 
mx2.mail.com smtp :[mx1.mail.com] 

All hashed of course 


Computer King CaN-Mail Surveillance King 
http://computerking.ca http://canmail.org http://surveillanceking.net 

Surveillance - Sales Service - Hosting Backup 
Internet Based Surveillance Systems 
Custom Service Pac kages 
Secure IMAP Email - Automated Remote Backups - Photo Blogs - Online ERP and 
Accounting Packages 

Reply via email to