paries
asked on
postfix can not get relaying from outside server to work
I am trying to get relaying from my outside server to my mail server. And it seems what ever i do the relay gets rejected
So on my server i have
define(`SMART_HOST', `mail.mydomain.com')dnl
define(`RELAY_MAILER_ARGS' , `TCP $h 26')dnl
This works, i can see my postfix server get the relay
On my mail server i have in my main.cf
mynetworks = 127.0.0.0/8, 216.xxx.xxx.0/24, 74.xxx.xxx.49/32
#mynetworks_style = host
after i change the main.cf i do a
#postfix reload
I then just for fun
[root@rmail postfix]# postconf | grep mynetwork
mynetworks = 127.0.0.0/8, 216.xxx.xxx.0/24, 74.xxx.xxx.49/32
mynetworks_style = subnet
when i try to send email i get
Feb 11 22:34:57 rmail postfix/smtpd[12578]: NOQUEUE: reject: RCPT from billing.mydomain.com[74.xx x.xxx.49]: 554 5.7.1 <root@billing.mydomain.com >: Relay access denied; from=<> to=<root@billing.mydomain. com> proto=ESMTP helo=<localhost.localdomai n>
I have been playing with this all night and getting no where. Would love any help
Thanks
So on my server i have
define(`SMART_HOST', `mail.mydomain.com')dnl
define(`RELAY_MAILER_ARGS'
This works, i can see my postfix server get the relay
On my mail server i have in my main.cf
mynetworks = 127.0.0.0/8, 216.xxx.xxx.0/24, 74.xxx.xxx.49/32
#mynetworks_style = host
after i change the main.cf i do a
#postfix reload
I then just for fun
[root@rmail postfix]# postconf | grep mynetwork
mynetworks = 127.0.0.0/8, 216.xxx.xxx.0/24, 74.xxx.xxx.49/32
mynetworks_style = subnet
when i try to send email i get
Feb 11 22:34:57 rmail postfix/smtpd[12578]: NOQUEUE: reject: RCPT from billing.mydomain.com[74.xx
I have been playing with this all night and getting no where. Would love any help
Thanks
ASKER
[root@mrslate mail]# telnet rmail.mydomain.com 26
Trying 198.xxx.xxx.61...
Connected to rmail.mydomain.com.
Escape character is '^]'.
220 rmail.mydomain.com ESMTP Postfix
helo localhost
250 rmail.mydomain.com
mail from: randy@mydomain.com
250 2.1.0 Ok
rcpt to: me@gmail.com
554 5.7.1 <me@gmail.com>: Relay access denied
and this is from the log on the mail server
Feb 12 00:14:39 rmail postfix/smtpd[14528]: NOQUEUE: reject: RCPT from billing.mydomain.com[74.xx x.xxx.49]: 554 5.7.1 <me@gmail.com>: Relay access denied; from=<randy@mydomain.com> to=<me@gmail.com> proto=SMTP helo=<localhost>
not sure what you mean by :::then you need to add IP address in allow-list..
I though that is what the mynetworks in the main.cf does?
Thanks for your help
Randy
Trying 198.xxx.xxx.61...
Connected to rmail.mydomain.com.
Escape character is '^]'.
220 rmail.mydomain.com ESMTP Postfix
helo localhost
250 rmail.mydomain.com
mail from: randy@mydomain.com
250 2.1.0 Ok
rcpt to: me@gmail.com
554 5.7.1 <me@gmail.com>: Relay access denied
and this is from the log on the mail server
Feb 12 00:14:39 rmail postfix/smtpd[14528]: NOQUEUE: reject: RCPT from billing.mydomain.com[74.xx
not sure what you mean by :::then you need to add IP address in allow-list..
I though that is what the mynetworks in the main.cf does?
Thanks for your help
Randy
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Also check whether SASL is causing this..
comment this as-well
#mynetworks_style = subnet
#mynetworks_style = subnet
ASKER
so i put it in debug mode
i know this is a lot, but maybe some one can see something::
postfix/smtpd[21172]: < billing.mydomain.com[74.xx x.xxx.49]: helo localhost
postfix/smtpd[21172]: > billing.mydomain.com[74.xx x.xxx.49]: 250 rmail.mydomain.com
postfix/smtpd[21172]: < billing.mydomain.com[74.xx x.xxx.49]: mail from: randy@mydomain.com
postfix/smtpd[21172]: extract_addr: input: randy@mydomain.com
postfix/smtpd[21172]: smtpd_check_addr: addr=randy@mydomain.com
postfix/smtpd[21172]: connect to subsystem private/rewrite
postfix/smtpd[21172]: send attr request = rewrite
postfix/smtpd[21172]: send attr rule = local
postfix/smtpd[21172]: send attr address = randy@mydomain.com
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: flags
postfix/smtpd[21172]: input attribute name: flags
postfix/smtpd[21172]: input attribute value: 0
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: address
postfix/smtpd[21172]: input attribute name: address
postfix/smtpd[21172]: input attribute value: randy@mydomain.com
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: (list terminator)
postfix/smtpd[21172]: input attribute name: (end)
postfix/smtpd[21172]: rewrite_clnt: local: randy@mydomain.com -> randy@mydomain.com
postfix/smtpd[21172]: send attr request = resolve
postfix/smtpd[21172]: send attr sender =
postfix/smtpd[21172]: send attr address = randy@mydomain.com
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: flags
postfix/smtpd[21172]: input attribute name: flags
postfix/smtpd[21172]: input attribute value: 0
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: transport
postfix/smtpd[21172]: input attribute name: transport
postfix/smtpd[21172]: input attribute value: dovecot
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: nexthop
postfix/smtpd[21172]: input attribute name: nexthop
postfix/smtpd[21172]: input attribute value: mydomain.com
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: recipient
postfix/smtpd[21172]: input attribute name: recipient
postfix/smtpd[21172]: input attribute value: randy@mydomain.com
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: flags
postfix/smtpd[21172]: input attribute name: flags
postfix/smtpd[21172]: input attribute value: 1024
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: (list terminator)
postfix/smtpd[21172]: input attribute name: (end)
postfix/smtpd[21172]: resolve_clnt: `' -> `randy@mydomain.com' -> transp=`dovecot' host=`mydomain.com' rcpt=`randy@mydomain.com' flags= class=virtual
postfix/smtpd[21172]: ctable_locate: install entry key randy@mydomain.com
postfix/smtpd[21172]: extract_addr: in: randy@mydomain.com, result: randy@mydomain.com
postfix/smtpd[21172]: fsspace: .: block size 4096, blocks free 6448499
postfix/smtpd[21172]: smtpd_check_queue: blocks 4096 avail 6448499 min_free 0 msg_size_limit 0
postfix/smtpd[21172]: > billing.mydomain.com[74.xx x.xxx.49]: 250 2.1.0 Ok
postfix/smtpd[21172]: < billing.mydomain.com[74.xx x.xxx.49]: rcpt to:me@gmail.com
postfix/smtpd[21172]: extract_addr: input: me@gmail.com
postfix/smtpd[21172]: smtpd_check_addr: addr=me@gmail.com
postfix/smtpd[21172]: send attr request = rewrite
postfix/smtpd[21172]: send attr rule = local
postfix/smtpd[21172]: send attr address = me@gmail.com
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: flags
postfix/smtpd[21172]: input attribute name: flags
postfix/smtpd[21172]: input attribute value: 0
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: address
postfix/smtpd[21172]: input attribute name: address
postfix/smtpd[21172]: input attribute value: me@gmail.com
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: (list terminator)
postfix/smtpd[21172]: input attribute name: (end)
postfix/smtpd[21172]: rewrite_clnt: local: me@gmail.com -> me@gmail.com
postfix/smtpd[21172]: send attr request = resolve
postfix/smtpd[21172]: send attr sender =
postfix/smtpd[21172]: send attr address = me@gmail.com
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: flags
postfix/smtpd[21172]: input attribute name: flags
postfix/smtpd[21172]: input attribute value: 0
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: transport
postfix/smtpd[21172]: input attribute name: transport
postfix/smtpd[21172]: input attribute value: smtp
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: nexthop
postfix/smtpd[21172]: input attribute name: nexthop
postfix/smtpd[21172]: input attribute value: gmail.com
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: recipient
postfix/smtpd[21172]: input attribute name: recipient
postfix/smtpd[21172]: input attribute value: me@gmail.com
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: flags
postfix/smtpd[21172]: input attribute name: flags
postfix/smtpd[21172]: input attribute value: 4096
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: (list terminator)
postfix/smtpd[21172]: input attribute name: (end)
postfix/smtpd[21172]: resolve_clnt: `' -> `me@gmail.com' -> transp=`smtp' host=`gmail.com' rcpt=`me@gmail.com' flags= class=default
postfix/smtpd[21172]: ctable_locate: install entry key me@gmail.com
postfix/smtpd[21172]: extract_addr: in: me@gmail.com, result: me@gmail.com
postfix/smtpd[21172]: send attr request = rewrite
postfix/smtpd[21172]: send attr rule = local
postfix/smtpd[21172]: send attr address = double-bounce
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: flags
postfix/smtpd[21172]: input attribute name: flags
postfix/smtpd[21172]: input attribute value: 0
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: address
postfix/smtpd[21172]: input attribute name: address
postfix/smtpd[21172]: input attribute value: double-bounce@rmail.mydoma in.com
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: (list terminator)
postfix/smtpd[21172]: input attribute name: (end)
postfix/smtpd[21172]: rewrite_clnt: local: double-bounce -> double-bounce@rmail.mydoma in.com
postfix/smtpd[21172]: >>> START Helo command RESTRICTIONS <<<
postfix/smtpd[21172]: generic_checks: name=permit_mynetworks
postfix/smtpd[21172]: permit_mynetworks: billing.mydomain.com 74.xxx.xxx.49
postfix/smtpd[21172]: match_hostname: billing.mydomain.com ~? 127.0.0.0/8
postfix/smtpd[21172]: match_hostaddr: 74.xxx.xxx.49 ~? 127.0.0.0/8
postfix/smtpd[21172]: match_hostname: billing.mydomain.com ~? 216.xxx.xxx.0/24
postfix/smtpd[21172]: match_hostaddr: 74.xxx.xxx.49 ~? 216.xxx.xxx.0/24
postfix/smtpd[21172]: match_hostname: billing.mydomain.com ~? 74.xxx.xxx.49/32
postfix/smtpd[21172]: match_hostaddr: 74.xxx.xxx.49 ~? 74.xxx.xxx.49/32
postfix/smtpd[21172]: generic_checks: name=permit_mynetworks status=1
postfix/smtpd[21172]: >>> START Sender address RESTRICTIONS <<<
postfix/smtpd[21172]: generic_checks: name=permit_mynetworks
postfix/smtpd[21172]: permit_mynetworks: billing.mydomain.com 74.xxx.xxx.49
postfix/smtpd[21172]: match_hostname: billing.mydomain.com ~? 127.0.0.0/8
postfix/smtpd[21172]: match_hostaddr: 74.xxx.xxx.49 ~? 127.0.0.0/8
postfix/smtpd[21172]: match_hostname: billing.mydomain.com ~? 216.xxx.xxx.0/24
postfix/smtpd[21172]: match_hostaddr: 74.xxx.xxx.49 ~? 216.xxx.xxx.0/24
postfix/smtpd[21172]: match_hostname: billing.mydomain.com ~? 74.xxx.xxx.49/32
postfix/smtpd[21172]: match_hostaddr: 74.xxx.xxx.49 ~? 74.xxx.xxx.49/32
postfix/smtpd[21172]: generic_checks: name=permit_mynetworks status=1
postfix/smtpd[21172]: >>> CHECKING RECIPIENT MAPS <<<
postfix/smtpd[21172]: ctable_locate: move existing entry key randy@mydomain.com
postfix/smtpd[21172]: maps_find: recipient_canonical_maps: randy@mydomain.com: not found
postfix/smtpd[21172]: match_string: mydomain.com ~? rmail.mydomain.com
postfix/smtpd[21172]: match_string: mydomain.com ~? localhost
postfix/smtpd[21172]: match_string: mydomain.com ~? localhost.localdomain
postfix/smtpd[21172]: match_string: mydomain.com ~? localhost.rmail.mydomain.c om
postfix/smtpd[21172]: match_list_match: mydomain.com: no match
postfix/smtpd[21172]: maps_find: recipient_canonical_maps: @mydomain.com: not found
postfix/smtpd[21172]: mail_addr_find: randy@mydomain.com -> (not found)
postfix/smtpd[21172]: maps_find: canonical_maps: randy@mydomain.com: not found
postfix/smtpd[21172]: match_string: mydomain.com ~? rmail.mydomain.com
postfix/smtpd[21172]: match_string: mydomain.com ~? localhost
postfix/smtpd[21172]: match_string: mydomain.com ~? localhost.localdomain
postfix/smtpd[21172]: match_string: mydomain.com ~? localhost.rmail.mydomain.c om
postfix/smtpd[21172]: match_list_match: mydomain.com: no match
postfix/smtpd[21172]: maps_find: canonical_maps: @mydomain.com: not found
postfix/smtpd[21172]: mail_addr_find: randy@mydomain.com -> (not found)
postfix/smtpd[21172]: send attr request = lookup
postfix/smtpd[21172]: send attr table = mysql:/etc/postfix/mysql/v irtual_ali as_maps.cf
postfix/smtpd[21172]: send attr flags = 16448
postfix/smtpd[21172]: send attr key = randy@mydomain.com
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: status
postfix/smtpd[21172]: input attribute name: status
postfix/smtpd[21172]: input attribute value: 0
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: value
postfix/smtpd[21172]: input attribute name: value
postfix/smtpd[21172]: input attribute value: randy.paries@mydomain.com
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: (list terminator)
postfix/smtpd[21172]: input attribute name: (end)
postfix/smtpd[21172]: dict_proxy_lookup: table=mysql:/etc/postfix/m ysql/virtu al_alias_m aps.cf flags=lock|fold_fix key=randy@mydomain.com -> status=0 result=randy.paries@mydoma in.com
postfix/smtpd[21172]: maps_find: virtual_alias_maps: proxy:mysql:/etc/postfix/m ysql/virtu al_alias_m aps.cf(0,l ock|fold_f ix): randy@mydomain.com = randy.paries@mydomain.com
postfix/smtpd[21172]: mail_addr_find: randy@mydomain.com -> randy.paries@mydomain.com
postfix/smtpd[21172]: >>> START Recipient address RESTRICTIONS <<<
postfix/smtpd[21172]: generic_checks: name=reject_unknown_sender _domain
postfix/smtpd[21172]: reject_unknown_address: randy@mydomain.com
postfix/smtpd[21172]: ctable_locate: leave existing entry key randy@mydomain.com
postfix/smtpd[21172]: generic_checks: name=reject_unknown_sender _domain status=0
postfix/smtpd[21172]: generic_checks: name=reject_unknown_recipi ent_domain
postfix/smtpd[21172]: reject_unknown_address: me@gmail.com
postfix/smtpd[21172]: ctable_locate: move existing entry key me@gmail.com
postfix/smtpd[21172]: reject_unknown_mailhost: gmail.com
postfix/smtpd[21172]: lookup gmail.com type MX flags 0
postfix/smtpd[21172]: dns_query: gmail.com (MX): OK
postfix/smtpd[21172]: dns_get_answer: type MX for gmail.com
postfix/smtpd[21172]: dns_get_answer: type MX for gmail.com
postfix/smtpd[21172]: dns_get_answer: type MX for gmail.com
postfix/smtpd[21172]: dns_get_answer: type MX for gmail.com
postfix/smtpd[21172]: dns_get_answer: type MX for gmail.com
postfix/smtpd[21172]: generic_checks: name=reject_unknown_recipi ent_domain status=0
postfix/smtpd[21172]: generic_checks: name=reject_non_fqdn_sende r
postfix/smtpd[21172]: reject_non_fqdn_address: randy@mydomain.com
postfix/smtpd[21172]: generic_checks: name=reject_non_fqdn_sende r status=0
postfix/smtpd[21172]: generic_checks: name=reject_non_fqdn_recip ient
postfix/smtpd[21172]: reject_non_fqdn_address: me@gmail.com
postfix/smtpd[21172]: generic_checks: name=reject_non_fqdn_recip ient status=0
postfix/smtpd[21172]: generic_checks: name=reject_unlisted_recip ient
postfix/smtpd[21172]: >>> CHECKING RECIPIENT MAPS <<<
postfix/smtpd[21172]: ctable_locate: leave existing entry key me@gmail.com
postfix/smtpd[21172]: maps_find: recipient_canonical_maps: me@gmail.com: not found
postfix/smtpd[21172]: match_string: gmail.com ~? rmail.mydomain.com
postfix/smtpd[21172]: match_string: gmail.com ~? localhost
postfix/smtpd[21172]: match_string: gmail.com ~? localhost.localdomain
postfix/smtpd[21172]: match_string: gmail.com ~? localhost.rmail.mydomain.c om
postfix/smtpd[21172]: match_list_match: gmail.com: no match
postfix/smtpd[21172]: maps_find: recipient_canonical_maps: @gmail.com: not found
postfix/smtpd[21172]: mail_addr_find: me@gmail.com -> (not found)
postfix/smtpd[21172]: maps_find: canonical_maps: me@gmail.com: not found
postfix/smtpd[21172]: match_string: gmail.com ~? rmail.mydomain.com
postfix/smtpd[21172]: match_string: gmail.com ~? localhost
postfix/smtpd[21172]: match_string: gmail.com ~? localhost.localdomain
postfix/smtpd[21172]: match_string: gmail.com ~? localhost.rmail.mydomain.c om
postfix/smtpd[21172]: match_list_match: gmail.com: no match
postfix/smtpd[21172]: maps_find: canonical_maps: @gmail.com: not found
postfix/smtpd[21172]: mail_addr_find: me@gmail.com -> (not found)
postfix/smtpd[21172]: send attr request = lookup
postfix/smtpd[21172]: send attr table = mysql:/etc/postfix/mysql/v irtual_ali as_maps.cf
postfix/smtpd[21172]: send attr flags = 16448
postfix/smtpd[21172]: send attr key = me@gmail.com
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: status
postfix/smtpd[21172]: input attribute name: status
postfix/smtpd[21172]: input attribute value: 1
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: value
postfix/smtpd[21172]: input attribute name: value
postfix/smtpd[21172]: input attribute value: (end)
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: (list terminator)
postfix/smtpd[21172]: input attribute name: (end)
postfix/smtpd[21172]: dict_proxy_lookup: table=mysql:/etc/postfix/m ysql/virtu al_alias_m aps.cf flags=lock|fold_fix key=me@gmail.com -> status=1 result=
postfix/smtpd[21172]: send attr request = lookup
postfix/smtpd[21172]: send attr table = mysql:/etc/postfix/mysql/d omain_alia s_maps.cf
postfix/smtpd[21172]: send attr flags = 16448
postfix/smtpd[21172]: send attr key = me@gmail.com
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: status
postfix/smtpd[21172]: input attribute name: status
postfix/smtpd[21172]: input attribute value: 1
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: value
postfix/smtpd[21172]: input attribute name: value
postfix/smtpd[21172]: input attribute value: (end)
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: (list terminator)
postfix/smtpd[21172]: input attribute name: (end)
postfix/smtpd[21172]: dict_proxy_lookup: table=mysql:/etc/postfix/m ysql/domai n_alias_ma ps.cf flags=lock|fold_fix key=me@gmail.com -> status=1 result=
postfix/smtpd[21172]: send attr request = lookup
postfix/smtpd[21172]: send attr table = mysql:/etc/postfix/mysql/c atchall_ma ps.cf
postfix/smtpd[21172]: send attr flags = 16448
postfix/smtpd[21172]: send attr key = me@gmail.com
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: status
postfix/smtpd[21172]: input attribute name: status
postfix/smtpd[21172]: input attribute value: 1
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: value
postfix/smtpd[21172]: input attribute name: value
postfix/smtpd[21172]: input attribute value: (end)
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: (list terminator)
postfix/smtpd[21172]: input attribute name: (end)
postfix/smtpd[21172]: dict_proxy_lookup: table=mysql:/etc/postfix/m ysql/catch all_maps.c f flags=lock|fold_fix key=me@gmail.com -> status=1 result=
postfix/smtpd[21172]: send attr request = lookup
postfix/smtpd[21172]: send attr table = mysql:/etc/postfix/mysql/d omain_alia s_catchall _maps.cf
postfix/smtpd[21172]: send attr flags = 16448
postfix/smtpd[21172]: send attr key = me@gmail.com
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: status
postfix/smtpd[21172]: input attribute name: status
postfix/smtpd[21172]: input attribute value: 1
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: value
postfix/smtpd[21172]: input attribute name: value
postfix/smtpd[21172]: input attribute value: (end)
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: (list terminator)
postfix/smtpd[21172]: input attribute name: (end)
postfix/smtpd[21172]: dict_proxy_lookup: table=mysql:/etc/postfix/m ysql/domai n_alias_ca tchall_map s.cf flags=lock|fold_fix key=me@gmail.com -> status=1 result=
postfix/smtpd[21172]: maps_find: virtual_alias_maps: me@gmail.com: not found
postfix/smtpd[21172]: match_string: gmail.com ~? rmail.mydomain.com
postfix/smtpd[21172]: match_string: gmail.com ~? localhost
postfix/smtpd[21172]: smtp_get: EOF
postfix/smtpd[21172]: match_hostname: billing.mydomain.com ~? 127.0.0.0/8
postfix/smtpd[21172]: match_hostaddr: 74.xxx.xxx.49 ~? 127.0.0.0/8
postfix/smtpd[21172]: match_hostname: billing.mydomain.com ~? 216.xxx.xxx.0/24
postfix/smtpd[21172]: match_hostaddr: 74.xxx.xxx.49 ~? 216.xxx.xxx.0/24
postfix/smtpd[21172]: match_hostname: billing.mydomain.com ~? 74.xxx.xxx.49/32
postfix/smtpd[21172]: match_hostaddr: 74.xxx.xxx.49 ~? 74.xxx.xxx.49/32
postfix/smtpd[21172]: lost connection after RCPT from billing.mydomain.com[74.xx x.xxx.49]
postfix/smtpd[21172]: disconnect from billing.mydomain.com[74.xx x.xxx.49]
postfix/smtpd[21172]: master_notify: status 1
postfix/smtpd[21172]: connection closed
postfix/smtpd[21172]: auto_clnt_close: disconnect private/tlsmgr stream
postfix/smtpd[21172]: rewrite stream disconnect
postfix/smtpd[21172]: proxymap stream disconnect
postfix/smtpd[21172]: auto_clnt_close: disconnect 127.0.0.1:7777 stream
i know this is a lot, but maybe some one can see something::
postfix/smtpd[21172]: < billing.mydomain.com[74.xx
postfix/smtpd[21172]: > billing.mydomain.com[74.xx
postfix/smtpd[21172]: < billing.mydomain.com[74.xx
postfix/smtpd[21172]: extract_addr: input: randy@mydomain.com
postfix/smtpd[21172]: smtpd_check_addr: addr=randy@mydomain.com
postfix/smtpd[21172]: connect to subsystem private/rewrite
postfix/smtpd[21172]: send attr request = rewrite
postfix/smtpd[21172]: send attr rule = local
postfix/smtpd[21172]: send attr address = randy@mydomain.com
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: flags
postfix/smtpd[21172]: input attribute name: flags
postfix/smtpd[21172]: input attribute value: 0
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: address
postfix/smtpd[21172]: input attribute name: address
postfix/smtpd[21172]: input attribute value: randy@mydomain.com
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: (list terminator)
postfix/smtpd[21172]: input attribute name: (end)
postfix/smtpd[21172]: rewrite_clnt: local: randy@mydomain.com -> randy@mydomain.com
postfix/smtpd[21172]: send attr request = resolve
postfix/smtpd[21172]: send attr sender =
postfix/smtpd[21172]: send attr address = randy@mydomain.com
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: flags
postfix/smtpd[21172]: input attribute name: flags
postfix/smtpd[21172]: input attribute value: 0
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: transport
postfix/smtpd[21172]: input attribute name: transport
postfix/smtpd[21172]: input attribute value: dovecot
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: nexthop
postfix/smtpd[21172]: input attribute name: nexthop
postfix/smtpd[21172]: input attribute value: mydomain.com
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: recipient
postfix/smtpd[21172]: input attribute name: recipient
postfix/smtpd[21172]: input attribute value: randy@mydomain.com
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: flags
postfix/smtpd[21172]: input attribute name: flags
postfix/smtpd[21172]: input attribute value: 1024
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: (list terminator)
postfix/smtpd[21172]: input attribute name: (end)
postfix/smtpd[21172]: resolve_clnt: `' -> `randy@mydomain.com' -> transp=`dovecot' host=`mydomain.com' rcpt=`randy@mydomain.com' flags= class=virtual
postfix/smtpd[21172]: ctable_locate: install entry key randy@mydomain.com
postfix/smtpd[21172]: extract_addr: in: randy@mydomain.com, result: randy@mydomain.com
postfix/smtpd[21172]: fsspace: .: block size 4096, blocks free 6448499
postfix/smtpd[21172]: smtpd_check_queue: blocks 4096 avail 6448499 min_free 0 msg_size_limit 0
postfix/smtpd[21172]: > billing.mydomain.com[74.xx
postfix/smtpd[21172]: < billing.mydomain.com[74.xx
postfix/smtpd[21172]: extract_addr: input: me@gmail.com
postfix/smtpd[21172]: smtpd_check_addr: addr=me@gmail.com
postfix/smtpd[21172]: send attr request = rewrite
postfix/smtpd[21172]: send attr rule = local
postfix/smtpd[21172]: send attr address = me@gmail.com
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: flags
postfix/smtpd[21172]: input attribute name: flags
postfix/smtpd[21172]: input attribute value: 0
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: address
postfix/smtpd[21172]: input attribute name: address
postfix/smtpd[21172]: input attribute value: me@gmail.com
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: (list terminator)
postfix/smtpd[21172]: input attribute name: (end)
postfix/smtpd[21172]: rewrite_clnt: local: me@gmail.com -> me@gmail.com
postfix/smtpd[21172]: send attr request = resolve
postfix/smtpd[21172]: send attr sender =
postfix/smtpd[21172]: send attr address = me@gmail.com
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: flags
postfix/smtpd[21172]: input attribute name: flags
postfix/smtpd[21172]: input attribute value: 0
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: transport
postfix/smtpd[21172]: input attribute name: transport
postfix/smtpd[21172]: input attribute value: smtp
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: nexthop
postfix/smtpd[21172]: input attribute name: nexthop
postfix/smtpd[21172]: input attribute value: gmail.com
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: recipient
postfix/smtpd[21172]: input attribute name: recipient
postfix/smtpd[21172]: input attribute value: me@gmail.com
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: flags
postfix/smtpd[21172]: input attribute name: flags
postfix/smtpd[21172]: input attribute value: 4096
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: (list terminator)
postfix/smtpd[21172]: input attribute name: (end)
postfix/smtpd[21172]: resolve_clnt: `' -> `me@gmail.com' -> transp=`smtp' host=`gmail.com' rcpt=`me@gmail.com' flags= class=default
postfix/smtpd[21172]: ctable_locate: install entry key me@gmail.com
postfix/smtpd[21172]: extract_addr: in: me@gmail.com, result: me@gmail.com
postfix/smtpd[21172]: send attr request = rewrite
postfix/smtpd[21172]: send attr rule = local
postfix/smtpd[21172]: send attr address = double-bounce
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: flags
postfix/smtpd[21172]: input attribute name: flags
postfix/smtpd[21172]: input attribute value: 0
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: address
postfix/smtpd[21172]: input attribute name: address
postfix/smtpd[21172]: input attribute value: double-bounce@rmail.mydoma
postfix/smtpd[21172]: private/rewrite socket: wanted attribute: (list terminator)
postfix/smtpd[21172]: input attribute name: (end)
postfix/smtpd[21172]: rewrite_clnt: local: double-bounce -> double-bounce@rmail.mydoma
postfix/smtpd[21172]: >>> START Helo command RESTRICTIONS <<<
postfix/smtpd[21172]: generic_checks: name=permit_mynetworks
postfix/smtpd[21172]: permit_mynetworks: billing.mydomain.com 74.xxx.xxx.49
postfix/smtpd[21172]: match_hostname: billing.mydomain.com ~? 127.0.0.0/8
postfix/smtpd[21172]: match_hostaddr: 74.xxx.xxx.49 ~? 127.0.0.0/8
postfix/smtpd[21172]: match_hostname: billing.mydomain.com ~? 216.xxx.xxx.0/24
postfix/smtpd[21172]: match_hostaddr: 74.xxx.xxx.49 ~? 216.xxx.xxx.0/24
postfix/smtpd[21172]: match_hostname: billing.mydomain.com ~? 74.xxx.xxx.49/32
postfix/smtpd[21172]: match_hostaddr: 74.xxx.xxx.49 ~? 74.xxx.xxx.49/32
postfix/smtpd[21172]: generic_checks: name=permit_mynetworks status=1
postfix/smtpd[21172]: >>> START Sender address RESTRICTIONS <<<
postfix/smtpd[21172]: generic_checks: name=permit_mynetworks
postfix/smtpd[21172]: permit_mynetworks: billing.mydomain.com 74.xxx.xxx.49
postfix/smtpd[21172]: match_hostname: billing.mydomain.com ~? 127.0.0.0/8
postfix/smtpd[21172]: match_hostaddr: 74.xxx.xxx.49 ~? 127.0.0.0/8
postfix/smtpd[21172]: match_hostname: billing.mydomain.com ~? 216.xxx.xxx.0/24
postfix/smtpd[21172]: match_hostaddr: 74.xxx.xxx.49 ~? 216.xxx.xxx.0/24
postfix/smtpd[21172]: match_hostname: billing.mydomain.com ~? 74.xxx.xxx.49/32
postfix/smtpd[21172]: match_hostaddr: 74.xxx.xxx.49 ~? 74.xxx.xxx.49/32
postfix/smtpd[21172]: generic_checks: name=permit_mynetworks status=1
postfix/smtpd[21172]: >>> CHECKING RECIPIENT MAPS <<<
postfix/smtpd[21172]: ctable_locate: move existing entry key randy@mydomain.com
postfix/smtpd[21172]: maps_find: recipient_canonical_maps: randy@mydomain.com: not found
postfix/smtpd[21172]: match_string: mydomain.com ~? rmail.mydomain.com
postfix/smtpd[21172]: match_string: mydomain.com ~? localhost
postfix/smtpd[21172]: match_string: mydomain.com ~? localhost.localdomain
postfix/smtpd[21172]: match_string: mydomain.com ~? localhost.rmail.mydomain.c
postfix/smtpd[21172]: match_list_match: mydomain.com: no match
postfix/smtpd[21172]: maps_find: recipient_canonical_maps: @mydomain.com: not found
postfix/smtpd[21172]: mail_addr_find: randy@mydomain.com -> (not found)
postfix/smtpd[21172]: maps_find: canonical_maps: randy@mydomain.com: not found
postfix/smtpd[21172]: match_string: mydomain.com ~? rmail.mydomain.com
postfix/smtpd[21172]: match_string: mydomain.com ~? localhost
postfix/smtpd[21172]: match_string: mydomain.com ~? localhost.localdomain
postfix/smtpd[21172]: match_string: mydomain.com ~? localhost.rmail.mydomain.c
postfix/smtpd[21172]: match_list_match: mydomain.com: no match
postfix/smtpd[21172]: maps_find: canonical_maps: @mydomain.com: not found
postfix/smtpd[21172]: mail_addr_find: randy@mydomain.com -> (not found)
postfix/smtpd[21172]: send attr request = lookup
postfix/smtpd[21172]: send attr table = mysql:/etc/postfix/mysql/v
postfix/smtpd[21172]: send attr flags = 16448
postfix/smtpd[21172]: send attr key = randy@mydomain.com
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: status
postfix/smtpd[21172]: input attribute name: status
postfix/smtpd[21172]: input attribute value: 0
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: value
postfix/smtpd[21172]: input attribute name: value
postfix/smtpd[21172]: input attribute value: randy.paries@mydomain.com
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: (list terminator)
postfix/smtpd[21172]: input attribute name: (end)
postfix/smtpd[21172]: dict_proxy_lookup: table=mysql:/etc/postfix/m
postfix/smtpd[21172]: maps_find: virtual_alias_maps: proxy:mysql:/etc/postfix/m
postfix/smtpd[21172]: mail_addr_find: randy@mydomain.com -> randy.paries@mydomain.com
postfix/smtpd[21172]: >>> START Recipient address RESTRICTIONS <<<
postfix/smtpd[21172]: generic_checks: name=reject_unknown_sender
postfix/smtpd[21172]: reject_unknown_address: randy@mydomain.com
postfix/smtpd[21172]: ctable_locate: leave existing entry key randy@mydomain.com
postfix/smtpd[21172]: generic_checks: name=reject_unknown_sender
postfix/smtpd[21172]: generic_checks: name=reject_unknown_recipi
postfix/smtpd[21172]: reject_unknown_address: me@gmail.com
postfix/smtpd[21172]: ctable_locate: move existing entry key me@gmail.com
postfix/smtpd[21172]: reject_unknown_mailhost: gmail.com
postfix/smtpd[21172]: lookup gmail.com type MX flags 0
postfix/smtpd[21172]: dns_query: gmail.com (MX): OK
postfix/smtpd[21172]: dns_get_answer: type MX for gmail.com
postfix/smtpd[21172]: dns_get_answer: type MX for gmail.com
postfix/smtpd[21172]: dns_get_answer: type MX for gmail.com
postfix/smtpd[21172]: dns_get_answer: type MX for gmail.com
postfix/smtpd[21172]: dns_get_answer: type MX for gmail.com
postfix/smtpd[21172]: generic_checks: name=reject_unknown_recipi
postfix/smtpd[21172]: generic_checks: name=reject_non_fqdn_sende
postfix/smtpd[21172]: reject_non_fqdn_address: randy@mydomain.com
postfix/smtpd[21172]: generic_checks: name=reject_non_fqdn_sende
postfix/smtpd[21172]: generic_checks: name=reject_non_fqdn_recip
postfix/smtpd[21172]: reject_non_fqdn_address: me@gmail.com
postfix/smtpd[21172]: generic_checks: name=reject_non_fqdn_recip
postfix/smtpd[21172]: generic_checks: name=reject_unlisted_recip
postfix/smtpd[21172]: >>> CHECKING RECIPIENT MAPS <<<
postfix/smtpd[21172]: ctable_locate: leave existing entry key me@gmail.com
postfix/smtpd[21172]: maps_find: recipient_canonical_maps: me@gmail.com: not found
postfix/smtpd[21172]: match_string: gmail.com ~? rmail.mydomain.com
postfix/smtpd[21172]: match_string: gmail.com ~? localhost
postfix/smtpd[21172]: match_string: gmail.com ~? localhost.localdomain
postfix/smtpd[21172]: match_string: gmail.com ~? localhost.rmail.mydomain.c
postfix/smtpd[21172]: match_list_match: gmail.com: no match
postfix/smtpd[21172]: maps_find: recipient_canonical_maps: @gmail.com: not found
postfix/smtpd[21172]: mail_addr_find: me@gmail.com -> (not found)
postfix/smtpd[21172]: maps_find: canonical_maps: me@gmail.com: not found
postfix/smtpd[21172]: match_string: gmail.com ~? rmail.mydomain.com
postfix/smtpd[21172]: match_string: gmail.com ~? localhost
postfix/smtpd[21172]: match_string: gmail.com ~? localhost.localdomain
postfix/smtpd[21172]: match_string: gmail.com ~? localhost.rmail.mydomain.c
postfix/smtpd[21172]: match_list_match: gmail.com: no match
postfix/smtpd[21172]: maps_find: canonical_maps: @gmail.com: not found
postfix/smtpd[21172]: mail_addr_find: me@gmail.com -> (not found)
postfix/smtpd[21172]: send attr request = lookup
postfix/smtpd[21172]: send attr table = mysql:/etc/postfix/mysql/v
postfix/smtpd[21172]: send attr flags = 16448
postfix/smtpd[21172]: send attr key = me@gmail.com
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: status
postfix/smtpd[21172]: input attribute name: status
postfix/smtpd[21172]: input attribute value: 1
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: value
postfix/smtpd[21172]: input attribute name: value
postfix/smtpd[21172]: input attribute value: (end)
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: (list terminator)
postfix/smtpd[21172]: input attribute name: (end)
postfix/smtpd[21172]: dict_proxy_lookup: table=mysql:/etc/postfix/m
postfix/smtpd[21172]: send attr request = lookup
postfix/smtpd[21172]: send attr table = mysql:/etc/postfix/mysql/d
postfix/smtpd[21172]: send attr flags = 16448
postfix/smtpd[21172]: send attr key = me@gmail.com
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: status
postfix/smtpd[21172]: input attribute name: status
postfix/smtpd[21172]: input attribute value: 1
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: value
postfix/smtpd[21172]: input attribute name: value
postfix/smtpd[21172]: input attribute value: (end)
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: (list terminator)
postfix/smtpd[21172]: input attribute name: (end)
postfix/smtpd[21172]: dict_proxy_lookup: table=mysql:/etc/postfix/m
postfix/smtpd[21172]: send attr request = lookup
postfix/smtpd[21172]: send attr table = mysql:/etc/postfix/mysql/c
postfix/smtpd[21172]: send attr flags = 16448
postfix/smtpd[21172]: send attr key = me@gmail.com
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: status
postfix/smtpd[21172]: input attribute name: status
postfix/smtpd[21172]: input attribute value: 1
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: value
postfix/smtpd[21172]: input attribute name: value
postfix/smtpd[21172]: input attribute value: (end)
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: (list terminator)
postfix/smtpd[21172]: input attribute name: (end)
postfix/smtpd[21172]: dict_proxy_lookup: table=mysql:/etc/postfix/m
postfix/smtpd[21172]: send attr request = lookup
postfix/smtpd[21172]: send attr table = mysql:/etc/postfix/mysql/d
postfix/smtpd[21172]: send attr flags = 16448
postfix/smtpd[21172]: send attr key = me@gmail.com
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: status
postfix/smtpd[21172]: input attribute name: status
postfix/smtpd[21172]: input attribute value: 1
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: value
postfix/smtpd[21172]: input attribute name: value
postfix/smtpd[21172]: input attribute value: (end)
postfix/smtpd[21172]: private/proxymap socket: wanted attribute: (list terminator)
postfix/smtpd[21172]: input attribute name: (end)
postfix/smtpd[21172]: dict_proxy_lookup: table=mysql:/etc/postfix/m
postfix/smtpd[21172]: maps_find: virtual_alias_maps: me@gmail.com: not found
postfix/smtpd[21172]: match_string: gmail.com ~? rmail.mydomain.com
postfix/smtpd[21172]: match_string: gmail.com ~? localhost
postfix/smtpd[21172]: smtp_get: EOF
postfix/smtpd[21172]: match_hostname: billing.mydomain.com ~? 127.0.0.0/8
postfix/smtpd[21172]: match_hostaddr: 74.xxx.xxx.49 ~? 127.0.0.0/8
postfix/smtpd[21172]: match_hostname: billing.mydomain.com ~? 216.xxx.xxx.0/24
postfix/smtpd[21172]: match_hostaddr: 74.xxx.xxx.49 ~? 216.xxx.xxx.0/24
postfix/smtpd[21172]: match_hostname: billing.mydomain.com ~? 74.xxx.xxx.49/32
postfix/smtpd[21172]: match_hostaddr: 74.xxx.xxx.49 ~? 74.xxx.xxx.49/32
postfix/smtpd[21172]: lost connection after RCPT from billing.mydomain.com[74.xx
postfix/smtpd[21172]: disconnect from billing.mydomain.com[74.xx
postfix/smtpd[21172]: master_notify: status 1
postfix/smtpd[21172]: connection closed
postfix/smtpd[21172]: auto_clnt_close: disconnect private/tlsmgr stream
postfix/smtpd[21172]: rewrite stream disconnect
postfix/smtpd[21172]: proxymap stream disconnect
postfix/smtpd[21172]: auto_clnt_close: disconnect 127.0.0.1:7777 stream
something wrong here
postfix/smtpd[21172]: generic_checks: name=reject_unknown_sender _domain
postfix/smtpd[21172]: reject_unknown_address: randy@mydomain.com
postfix/smtpd[21172]: ctable_locate: leave existing entry key randy@mydomain.com
postfix/smtpd[21172]: generic_checks: name=reject_unknown_sender _domain status=0
postfix/smtpd[21172]: generic_checks: name=reject_unknown_recipi ent_domain
postfix/smtpd[21172]: reject_unknown_address: me@gmail.com
postfix/smtpd[21172]: ctable_locate: move existing entry key me@gmail.com
postfix/smtpd[21172]: reject_unknown_mailhost: gmail.com
postfix/smtpd[21172]: generic_checks: name=reject_unknown_sender
postfix/smtpd[21172]: reject_unknown_address: randy@mydomain.com
postfix/smtpd[21172]: ctable_locate: leave existing entry key randy@mydomain.com
postfix/smtpd[21172]: generic_checks: name=reject_unknown_sender
postfix/smtpd[21172]: generic_checks: name=reject_unknown_recipi
postfix/smtpd[21172]: reject_unknown_address: me@gmail.com
postfix/smtpd[21172]: ctable_locate: move existing entry key me@gmail.com
postfix/smtpd[21172]: reject_unknown_mailhost: gmail.com
ASKER
this is from #postconf | grep mynetwork (below)
mynetworks_style = subnet seems suspicious, but http://www.postfix.org/BASIC_CONFIGURATION_README.html says
#postconf | grep mynetwork
mynetworks = 127.0.0.0/8, 216.xxx.xxx.0/24, 74.xxx.xxx.49/32
mynetworks_style = subnet
parent_domain_matches_subd omains = debug_peer_list,fast_flush _domains,m ynetworks, permit_mx_ backup_net works,qmqp d_authoriz ed_clients ,relay_dom ains,smtpd _access_ma ps
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $smtpd_sender_restrictions
smtpd_client_event_limit_e xceptions = ${smtpd_client_connection_ limit_exce ptions:$my networks}
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_helo_hostn ame, reject_invalid_helo_hostna me, check_helo_access pcre:/etc/postfix/helo_acc ess.pcre
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismat ch, permit_sasl_authenticate
mynetworks_style = subnet seems suspicious, but http://www.postfix.org/BASIC_CONFIGURATION_README.html says
Alternatively, you can specify the mynetworks list by hand, in which case Postfix ignores the mynetworks_style setting. To specify the list of trusted networks by hand, specify network blocks in CIDR (network/mask) notation, So i assume that is a red herring
#postconf | grep mynetwork
mynetworks = 127.0.0.0/8, 216.xxx.xxx.0/24, 74.xxx.xxx.49/32
mynetworks_style = subnet
parent_domain_matches_subd
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $smtpd_sender_restrictions
smtpd_client_event_limit_e
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated,
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismat
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I've requested that this question be closed as follows:
Accepted answer: 0 points for paries's comment #a39853381
for the following reason:
found in this article
http://www.postfix.org/SMTPD_ACCESS_README.html
Accepted answer: 0 points for paries's comment #a39853381
for the following reason:
found in this article
http://www.postfix.org/SMTPD_ACCESS_README.html
that you found once debug was on..
ASKER
need to change to accept multiple solutions
yes pls
I am fine with this .. You can close this now also.
ASKER
with help from sandy debugging found in this article
http://www.postfix.org/SMTPD_ACCESS_README.html
http://www.postfix.org/SMTPD_ACCESS_README.html
#telnet mail.mydomain.com 25
helo localhost
mail from: a@a.com
rcpt to: a@a.com
data
Subject: hello
test
.
If it give error somewhere in between that relay access denied then you need to add IP address in allow-list..
TY/SA