Discussion:
question about postfix configuration that make the postfix send local email out?
(too old to reply)
s***@gmail.com
2014-11-12 16:06:23 UTC
Permalink
I have a enterprise email platform on godaddy. I used this to receive/process email from customer. The email address for administration is ***@mydomain.com .


also, I have a website, and I used the postfix fix send email to customer automatically, the sender email is ***@mydomain.com. This works correct now.


question is :
when my website try to send email to ***@mydomain.com for notification administration, the email cannot be sent out to godaddy email platform. actually, it receives by the postfix-self.

but the administration process email on godadyy!

are there some configuration in postfix to solve this?
Burkhard Ott
2014-11-13 03:57:20 UTC
Permalink
Post by s***@gmail.com
are there some configuration in postfix to solve this?
Yes.
s***@gmail.com
2014-11-14 00:50:03 UTC
Permalink
Post by s***@gmail.com
are there some configuration in postfix to solve this?
Yes.
could you tell me how to do that please?
Burkhard Ott
2014-11-14 02:55:24 UTC
Permalink
Post by s***@gmail.com
Post by s***@gmail.com
are there some configuration in postfix to solve this?
Yes.
could you tell me how to do that please?
Sure, check mydestination in you main.cf, that could be the issue.

cheers
s***@gmail.com
2014-11-14 05:16:13 UTC
Permalink
Post by Burkhard Ott
Post by s***@gmail.com
Post by s***@gmail.com
are there some configuration in postfix to solve this?
Yes.
could you tell me how to do that please?
Sure, check mydestination in you main.cf, that could be the issue.
cheers
the line mydestination in main.cf

mydestination = $myhostname, $mydomain, $localhost.$mydomain, localhost

are you mean just take out the $myhostname, $mydomain from the line?
s***@gmail.com
2014-11-14 05:26:42 UTC
Permalink
Post by Burkhard Ott
Post by s***@gmail.com
Post by s***@gmail.com
are there some configuration in postfix to solve this?
Yes.
could you tell me how to do that please?
Sure, check mydestination in you main.cf, that could be the issue.
cheers
I remove all value for the myDestination, but the postfix still receive the email which I want to sent out.
Burkhard Ott
2014-11-15 01:57:57 UTC
Permalink
Post by s***@gmail.com
Post by Burkhard Ott
Post by s***@gmail.com
Post by s***@gmail.com
are there some configuration in postfix to solve this?
Yes.
could you tell me how to do that please?
Sure, check mydestination in you main.cf, that could be the issue.
cheers
I remove all value for the myDestination, but the postfix still receive
the email which I want to sent out.
You could check th elogfiles, how does your transport table look like.
s***@gmail.com
2014-11-15 16:15:15 UTC
Permalink
Post by Burkhard Ott
Post by s***@gmail.com
Post by Burkhard Ott
Post by s***@gmail.com
Post by s***@gmail.com
are there some configuration in postfix to solve this?
Yes.
could you tell me how to do that please?
Sure, check mydestination in you main.cf, that could be the issue.
cheers
I remove all value for the myDestination, but the postfix still receive
the email which I want to sent out.
You could check th elogfiles, how does your transport table look like.
could you give some detail information about that? like concept, tutorial, or configure item.

the problem for me is : there are two mail platform, the postfix is responsible for send mail, and the godaddy is responsible receive mail. They have same domain name.
when the postfix try to send a mail which end with the @xxxx.com(my domain), it can not delivery to godaddy, instead, it stay in the postfix mail box.
Burkhard Ott
2014-11-16 01:17:44 UTC
Permalink
Post by s***@gmail.com
the problem for me is : there are two mail platform, the postfix is
responsible for send mail, and the godaddy is responsible receive mail.
They have same domain name.
domain), it can not delivery to godaddy, instead, it stay in the postfix
mail box.
Logfiles could be helpful as well as your config. Currently all I know
you try something with godaddy and it's not working.

If you postfix MTA has as mydestination domain.tld and the transport map
is not rerouting it, all messages to mydomain is handled locally since
your MTA is responisble for $mydestination.

It sounds to me that you are using godaddy as relay or does email fail
which is supposed to get sent to godaddy?

www.postfix.org has a very well written documentation if the above sounds
confusing.

cheers
s***@gmail.com
2014-11-16 05:57:00 UTC
Permalink
Post by Burkhard Ott
Post by s***@gmail.com
the problem for me is : there are two mail platform, the postfix is
responsible for send mail, and the godaddy is responsible receive mail.
They have same domain name.
domain), it can not delivery to godaddy, instead, it stay in the postfix
mail box.
Logfiles could be helpful as well as your config. Currently all I know
you try something with godaddy and it's not working.
If you postfix MTA has as mydestination domain.tld and the transport map
is not rerouting it, all messages to mydomain is handled locally since
your MTA is responisble for $mydestination.
It sounds to me that you are using godaddy as relay or does email fail
which is supposed to get sent to godaddy?
www.postfix.org has a very well written documentation if the above sounds
confusing.
cheers
Hi,

here is the log file information about the sending request:

Nov 15 11:38:48 ip-xx-xx-xx-xxx postfix/local[30164]: 032C157E54E: to=<***@xx .com>, orig_to=<***@xx.com>, relay=local, delay=0.02, delays=0/0.02/0/0, dsn=2.0.0, status=sent (delivered to mailbox)

I delete all domain in the mydestination, but the postfix still receive the mail, rather than sent out
Burkhard Ott
2014-11-16 16:55:45 UTC
Permalink
Post by s***@gmail.com
Hi,
here is the log file information about the sending request:
delays=0/0.02/0/0,
dsn=2.0.0, status=sent (delivered to mailbox)
I delete all domain in the mydestination, but the postfix still receive
the mail, rather than sent out
@xx.com gets handled as a local domain, try postconf | grep "xx.com" to
check where it's setup.

***@xx.com has been setup according to that single line, but is mapped
to sales.
Your MTA config is messed up , that's for sure.

Check where postfix get the local domain from, change it and postfix will
ask the DNS for an MX record and deliver to that one, or if you are using
a relay, it sends it to the relay.


cheers
s***@gmail.com
2014-11-16 07:10:22 UTC
Permalink
Post by Burkhard Ott
Post by s***@gmail.com
the problem for me is : there are two mail platform, the postfix is
responsible for send mail, and the godaddy is responsible receive mail.
They have same domain name.
domain), it can not delivery to godaddy, instead, it stay in the postfix
mail box.
Logfiles could be helpful as well as your config. Currently all I know
you try something with godaddy and it's not working.
If you postfix MTA has as mydestination domain.tld and the transport map
is not rerouting it, all messages to mydomain is handled locally since
your MTA is responisble for $mydestination.
It sounds to me that you are using godaddy as relay or does email fail
which is supposed to get sent to godaddy?
www.postfix.org has a very well written documentation if the above sounds
confusing.
cheers
I tried to find answer on the postfix website, but my firsy language is not English.

I tried, but I havent find that answer.......
Burkhard Ott
2014-11-16 17:00:15 UTC
Permalink
Post by s***@gmail.com
I tried to find answer on the postfix website, but my firsy language is not English.
My first languange isn't english either, but I have to admit that the
postfix documentation is very well written.
Post by s***@gmail.com
I tried, but I havent find that answer.......
I suppose it won't give you an answer to your specific problem, since you
are the only one who knows how you have configured it, with no input
there won't be output. The postfix documentation explains to you how it
works [postfix] internally and what mechanisms are in place and how they
are working together.

If you don't wnat to share your config, it's fine, but then you are the
only person who can help you fixing it, therefore you have to understand
how it works below the hood.

cheers
s***@gmail.com
2014-11-16 17:12:00 UTC
Permalink
Post by Burkhard Ott
Post by s***@gmail.com
I tried to find answer on the postfix website, but my firsy language is not English.
My first languange isn't english either, but I have to admit that the
postfix documentation is very well written.
Post by s***@gmail.com
I tried, but I havent find that answer.......
I suppose it won't give you an answer to your specific problem, since you
are the only one who knows how you have configured it, with no input
there won't be output. The postfix documentation explains to you how it
works [postfix] internally and what mechanisms are in place and how they
are working together.
If you don't wnat to share your config, it's fine, but then you are the
only person who can help you fixing it, therefore you have to understand
how it works below the hood.
cheers
I setup domain in the main.cf. How to check where the local domain the postfix get from?


the following is my main.cf


-----------------------------------------------------------------------------

#soft_bounce = no


queue_directory = /var/spool/postfix


command_directory = /usr/sbin


daemon_directory = /usr/libexec/postfix


data_directory = /var/lib/postfix


mail_owner = postfix


#default_privs = nobody


#myhostname = host.domain.tld
#myhostname = virtual.domain.tld
myhostname = www.xx.com


#mydomain = domain.tld
mydomain = xx.com


#myorigin = $myhostname
#myorigin = $mydomain
myorigin = $mydomain

# RECEIVING MAIL
inet_interfaces = localhost

# Enable IPv4, and IPv6 if supported
inet_protocols = all


#proxy_interfaces =
#proxy_interfaces = 1.2.3.4

mydestination = localhost #$myhostname, $mydomain, localhost.$mydomain, localhost

#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
# mail.$mydomain, www.$mydomain, ftp.$mydomain


#local_recipient_maps = unix:passwd.byname $alias_maps
#local_recipient_maps = proxy:unix:passwd.byname $alias_maps
#local_recipient_maps =


unknown_local_recipient_reject_code = 550

# TRUST AND RELAY CONTROL

#mynetworks_style = class
#mynetworks_style = subnet
mynetworks_style = host

#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table

relay_domains = $mydomain

# INTERNET OR INTRANET

relayhost = [smtp.mailgun.org]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = static:***@xx.com:0jmdhtnj60e1
smtp_sasl_security_options = noanonymous


relay_recipient_maps = hash:/etc/postfix/relay_recipients


#in_flow_delay = 1s

# ADDRESS REWRITING
#
# The ADDRESS_REWRITING_README document gives information about
# address masquerading or other forms of address rewriting including
# username->Firstname.Lastname mapping.

# ADDRESS REDIRECTION (VIRTUAL DOMAIN)
#
# The VIRTUAL_README document gives information about the many forms
# of domain hosting that Postfix supports.

# "USER HAS MOVED" BOUNCE MESSAGES
#
# See the discussion in the ADDRESS_REWRITING_README document.

# TRANSPORT MAP
#
# See the discussion in the ADDRESS_REWRITING_README document.

#alias_maps = dbm:/etc/aliases
alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases


#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases


#recipient_delimiter = +

#home_mailbox = Mailbox
#home_mailbox = Maildir/

# The mail_spool_directory parameter specifies the directory where
# UNIX-style mailboxes are kept. The default setting depends on the
# system type.
#
#mail_spool_directory = /var/mail
#mail_spool_directory = /var/spool/mail


#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"


#mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp


# To use the old cyrus deliver program you have to set:
#mailbox_transport = cyrus


#fallback_transport = lmtp:unix:/var/lib/imap/socket/lmtp
#fallback_transport =


#luser_relay = $***@other.host
#luser_relay = $***@other.host
#luser_relay = admin+$local

# JUNK MAIL CONTROLS
#
# The controls listed here are only a very small subset. The file
# SMTPD_ACCESS_README provides an overview.


#header_checks = regexp:/etc/postfix/header_checks


#fast_flush_domains = $relay_domains


#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)

#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 20


debug_peer_level = 2


#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain


debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5


# debugger_command =
# PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen
# -dmS $process_name gdb $daemon_directory/$process_name
# $process_id & sleep 1

# INSTALL-TIME CONFIGURATION INFORMATION
#
# The following parameters are used when installing a new Postfix version.
#
# sendmail_path: The full pathname of the Postfix sendmail command.
# This is the Sendmail-compatible mail posting interface.
#
sendmail_path = /usr/sbin/sendmail.postfix

# newaliases_path: The full pathname of the Postfix newaliases command.
# This is the Sendmail-compatible command to build alias databases.
#
newaliases_path = /usr/bin/newaliases.postfix

# mailq_path: The full pathname of the Postfix mailq command. This
# is the Sendmail-compatible mail queue listing command.
#
mailq_path = /usr/bin/mailq.postfix

# setgid_group: The group for mail submission and queue management
# commands. This must be a group name with a numerical group ID that
# is not shared with other accounts, not even with the Postfix account.
#
setgid_group = postdrop

# html_directory: The location of the Postfix HTML documentation.
#
html_directory = no

# manpage_directory: The location of the Postfix on-line manual pages.
#
manpage_directory = /usr/share/man

# sample_directory: The location of the Postfix sample configuration files.
# This parameter is obsolete as of Postfix 2.1.
#
sample_directory = /usr/share/doc/postfix-2.6.6/samples

# readme_directory: The location of the Postfix README files.
#
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES


-------------------------------------------------------------------------------
Burkhard Ott
2014-11-17 00:34:48 UTC
Permalink
Post by s***@gmail.com
myorigin = $mydomain
# RECEIVING MAIL inet_interfaces = localhost
# Enable IPv4, and IPv6 if supported inet_protocols = all
#proxy_interfaces =
#proxy_interfaces = 1.2.3.4
mydestination = localhost #$myhostname, $mydomain, localhost.$mydomain, localhost
There we go:

mydomain = xx.com

All email with destination xx.com is handled locally as far as I can see,
which is fine.
In your logline you've sent earlier, you mapped ***@xx.com to
***@xx.com, all local. If you'd map ***@xx.com to ***@gmail.com,
you'll receive the email in your gmail inbox (if nothing else is
misconfigured).

cheers
s***@gmail.com
2014-11-21 01:27:32 UTC
Permalink
Post by s***@gmail.com
Post by s***@gmail.com
myorigin = $mydomain
# RECEIVING MAIL inet_interfaces = localhost
# Enable IPv4, and IPv6 if supported inet_protocols = all
#proxy_interfaces =
#proxy_interfaces = 1.2.3.4
mydestination = localhost #$myhostname, $mydomain, localhost.$mydomain, localhost
mydomain = xx.com
All email with destination xx.com is handled locally as far as I can see,
which is fine.
you'll receive the email in your gmail inbox (if nothing else is
misconfigured).
cheers
Hi,

thank you very much, Burkhard Ott.

that is the correct solution.

when I change the configure :

mydomain = ______.com

then the email ***@xx.com can be sent out, and it can received by the godaddy email platform.
Burkhard Ott
2014-11-21 02:27:29 UTC
Permalink
Post by s***@gmail.com
Post by s***@gmail.com
Post by s***@gmail.com
myorigin = $mydomain
# RECEIVING MAIL inet_interfaces = localhost
# Enable IPv4, and IPv6 if supported inet_protocols = all
#proxy_interfaces =
#proxy_interfaces = 1.2.3.4
mydestination = localhost #$myhostname, $mydomain,
localhost.$mydomain,
localhost
mydomain = xx.com
All email with destination xx.com is handled locally as far as I can see,
which is fine.
nothing else is misconfigured).
cheers
Hi,
thank you very much, Burkhard Ott.
that is the correct solution.
mydomain = ______.com
godaddy email platform.
Nice to hear.

cheers

s***@gmail.com
2014-11-16 17:16:46 UTC
Permalink
Post by Burkhard Ott
Post by s***@gmail.com
I tried to find answer on the postfix website, but my firsy language is not English.
My first languange isn't english either, but I have to admit that the
postfix documentation is very well written.
Post by s***@gmail.com
I tried, but I havent find that answer.......
I suppose it won't give you an answer to your specific problem, since you
are the only one who knows how you have configured it, with no input
there won't be output. The postfix documentation explains to you how it
works [postfix] internally and what mechanisms are in place and how they
are working together.
If you don't wnat to share your config, it's fine, but then you are the
only person who can help you fixing it, therefore you have to understand
how it works below the hood.
cheers
how to check where the local domain the postfix get from?
the following is my main.cf
------------------------------------------------------


#soft_bounce = no


queue_directory = /var/spool/postfix


command_directory = /usr/sbin


daemon_directory = /usr/libexec/postfix


data_directory = /var/lib/postfix


mail_owner = postfix


#default_privs = nobody


#myhostname = host.domain.tld
#myhostname = virtual.domain.tld
myhostname = www.xx.com


#mydomain = domain.tld
mydomain = xx.com


#myorigin = $myhostname
#myorigin = $mydomain
myorigin = $mydomain

# RECEIVING MAIL
inet_interfaces = localhost

# Enable IPv4, and IPv6 if supported
inet_protocols = all


#proxy_interfaces =
#proxy_interfaces = 1.2.3.4

mydestination = localhost #$myhostname, $mydomain, localhost.$mydomain, localhost

#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
# mail.$mydomain, www.$mydomain, ftp.$mydomain


#local_recipient_maps = unix:passwd.byname $alias_maps
#local_recipient_maps = proxy:unix:passwd.byname $alias_maps
#local_recipient_maps =


unknown_local_recipient_reject_code = 550

# TRUST AND RELAY CONTROL

#mynetworks_style = class
#mynetworks_style = subnet
mynetworks_style = host

#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table

relay_domains = $mydomain

# INTERNET OR INTRANET

relayhost = [smtp.mailgun.org]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = static:***@xx.com:0jmdhtnj60e1
smtp_sasl_security_options = noanonymous


relay_recipient_maps = hash:/etc/postfix/relay_recipients


#in_flow_delay = 1s

# ADDRESS REWRITING
#
# The ADDRESS_REWRITING_README document gives information about
# address masquerading or other forms of address rewriting including
# username->Firstname.Lastname mapping.

# ADDRESS REDIRECTION (VIRTUAL DOMAIN)
#
# The VIRTUAL_README document gives information about the many forms
# of domain hosting that Postfix supports.

# "USER HAS MOVED" BOUNCE MESSAGES
#
# See the discussion in the ADDRESS_REWRITING_README document.

# TRANSPORT MAP
#
# See the discussion in the ADDRESS_REWRITING_README document.

#alias_maps = dbm:/etc/aliases
alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases


#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases


#recipient_delimiter = +

#home_mailbox = Mailbox
#home_mailbox = Maildir/

# The mail_spool_directory parameter specifies the directory where
# UNIX-style mailboxes are kept. The default setting depends on the
# system type.
#
#mail_spool_directory = /var/mail
#mail_spool_directory = /var/spool/mail


#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"


#mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp


# To use the old cyrus deliver program you have to set:
#mailbox_transport = cyrus


#fallback_transport = lmtp:unix:/var/lib/imap/socket/lmtp
#fallback_transport =


#luser_relay = $***@other.host
#luser_relay = $***@other.host
#luser_relay = admin+$local

# JUNK MAIL CONTROLS
#
# The controls listed here are only a very small subset. The file
# SMTPD_ACCESS_README provides an overview.


#header_checks = regexp:/etc/postfix/header_checks


#fast_flush_domains = $relay_domains


#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)

#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 20


debug_peer_level = 2


#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain


debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5


# debugger_command =
# PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen
# -dmS $process_name gdb $daemon_directory/$process_name
# $process_id & sleep 1

# INSTALL-TIME CONFIGURATION INFORMATION
#
# The following parameters are used when installing a new Postfix version.
#
# sendmail_path: The full pathname of the Postfix sendmail command.
# This is the Sendmail-compatible mail posting interface.
#
sendmail_path = /usr/sbin/sendmail.postfix

# newaliases_path: The full pathname of the Postfix newaliases command.
# This is the Sendmail-compatible command to build alias databases.
#
newaliases_path = /usr/bin/newaliases.postfix

# mailq_path: The full pathname of the Postfix mailq command. This
# is the Sendmail-compatible mail queue listing command.
#
mailq_path = /usr/bin/mailq.postfix

# setgid_group: The group for mail submission and queue management
# commands. This must be a group name with a numerical group ID that
# is not shared with other accounts, not even with the Postfix account.
#
setgid_group = postdrop

# html_directory: The location of the Postfix HTML documentation.
#
html_directory = no

# manpage_directory: The location of the Postfix on-line manual pages.
#
manpage_directory = /usr/share/man

# sample_directory: The location of the Postfix sample configuration files.
# This parameter is obsolete as of Postfix 2.1.
#
sample_directory = /usr/share/doc/postfix-2.6.6/samples

# readme_directory: The location of the Postfix README files.
#
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES

------------------------------------------------------
s***@gmail.com
2014-11-16 17:35:25 UTC
Permalink
Post by Burkhard Ott
Post by s***@gmail.com
I tried to find answer on the postfix website, but my firsy language is not English.
My first languange isn't english either, but I have to admit that the
postfix documentation is very well written.
Post by s***@gmail.com
I tried, but I havent find that answer.......
I suppose it won't give you an answer to your specific problem, since you
are the only one who knows how you have configured it, with no input
there won't be output. The postfix documentation explains to you how it
works [postfix] internally and what mechanisms are in place and how they
are working together.
If you don't wnat to share your config, it's fine, but then you are the
only person who can help you fixing it, therefore you have to understand
how it works below the hood.
cheers
I dont know why the comment contains main.cf configure always be deleted.

could you give me a email address, and I will sent to you the configure file.

thanks you very much
Burkhard Ott
2014-11-17 00:36:05 UTC
Permalink
Post by s***@gmail.com
I dont know why the comment contains main.cf configure always be deleted.
could you give me a email address, and I will sent to you the configure file.
thanks you very much
You can't see my email in your newsreader?
s***@gmail.com
2014-11-16 17:38:23 UTC
Permalink
Post by Burkhard Ott
Post by s***@gmail.com
I tried to find answer on the postfix website, but my firsy language is not English.
My first languange isn't english either, but I have to admit that the
postfix documentation is very well written.
Post by s***@gmail.com
I tried, but I havent find that answer.......
I suppose it won't give you an answer to your specific problem, since you
are the only one who knows how you have configured it, with no input
there won't be output. The postfix documentation explains to you how it
works [postfix] internally and what mechanisms are in place and how they
are working together.
If you don't wnat to share your config, it's fine, but then you are the
only person who can help you fixing it, therefore you have to understand
how it works below the hood.
cheers
I tried the postconf command

-------------------------------------------------------

[***@ip-50-63-86-187 ~]# /usr/sbin/postconf | grep "xx.com"
mydomain = xx.com
myhostname = www.xx.com
smtp_sasl_password_maps = static:***@xx.com:0jmdhtnj60e1
Burkhard Ott
2014-11-17 00:50:30 UTC
Permalink
Post by s***@gmail.com
Post by Burkhard Ott
Post by s***@gmail.com
I tried to find answer on the postfix website, but my firsy language is not English.
My first languange isn't english either, but I have to admit that the
postfix documentation is very well written.
Post by s***@gmail.com
I tried, but I havent find that answer.......
I suppose it won't give you an answer to your specific problem, since
you are the only one who knows how you have configured it, with no
input there won't be output. The postfix documentation explains to you
how it works [postfix] internally and what mechanisms are in place and
how they are working together.
If you don't wnat to share your config, it's fine, but then you are the
only person who can help you fixing it, therefore you have to
understand how it works below the hood.
cheers
I tried the postconf command
-------------------------------------------------------
xx.com myhostname = www.xx.com smtp_sasl_password_maps =
Avoid posting username password combinations here, also your domain is
now know, nice decor stuff by the way.
A few lines above I told you what your problem is.

What I have seen on your website, I think you'd like to either host
locally your email or forward it to your gmail account, is that correct?

You can write to my email address if you'd like, I 'll make you a config
if you'd like which you can use for your specific case.

Godaddy is not a good choice if you want to host your own email, which is
possible as well.

Oh one other thing, change your password for postmaster, right now, yes
while you are reading here, do it right now! (don't forget to restart
postfix)


cheers
s***@gmail.com
2014-11-16 17:50:06 UTC
Permalink
Post by Burkhard Ott
Post by s***@gmail.com
I tried to find answer on the postfix website, but my firsy language is not English.
My first languange isn't english either, but I have to admit that the
postfix documentation is very well written.
Post by s***@gmail.com
I tried, but I havent find that answer.......
I suppose it won't give you an answer to your specific problem, since you
are the only one who knows how you have configured it, with no input
there won't be output. The postfix documentation explains to you how it
works [postfix] internally and what mechanisms are in place and how they
are working together.
If you don't wnat to share your config, it's fine, but then you are the
only person who can help you fixing it, therefore you have to understand
how it works below the hood.
cheers
----------------------------------------------------------------------------

main.cf
"""


#soft_bounce = no


queue_directory = /var/spool/postfix


command_directory = /usr/sbin


daemon_directory = /usr/libexec/postfix


data_directory = /var/lib/postfix


mail_owner = postfix


#default_privs = nobody


#myhostname = host.domain.tld
#myhostname = virtual.domain.tld
myhostname = www.xx.com


#mydomain = domain.tld
mydomain = xx.com


#myorigin = $myhostname
#myorigin = $mydomain
myorigin = $mydomain

# RECEIVING MAIL
inet_interfaces = localhost

# Enable IPv4, and IPv6 if supported
inet_protocols = all


#proxy_interfaces =
#proxy_interfaces = 1.2.3.4

mydestination = localhost #$myhostname, $mydomain, localhost.$mydomain, localhost

#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
# mail.$mydomain, www.$mydomain, ftp.$mydomain


#local_recipient_maps = unix:passwd.byname $alias_maps
#local_recipient_maps = proxy:unix:passwd.byname $alias_maps
#local_recipient_maps =


unknown_local_recipient_reject_code = 550

# TRUST AND RELAY CONTROL

#mynetworks_style = class
#mynetworks_style = subnet
mynetworks_style = host

#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table

relay_domains = $mydomain

# INTERNET OR INTRANET

relayhost = [smtp.mailgun.org]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = static:***@xx.com:0jmdhtnj60e1
smtp_sasl_security_options = noanonymous


relay_recipient_maps = hash:/etc/postfix/relay_recipients


#in_flow_delay = 1s

# ADDRESS REWRITING
#
# The ADDRESS_REWRITING_README document gives information about
# address masquerading or other forms of address rewriting including
# username->Firstname.Lastname mapping.

# ADDRESS REDIRECTION (VIRTUAL DOMAIN)
#
# The VIRTUAL_README document gives information about the many forms
# of domain hosting that Postfix supports.

# "USER HAS MOVED" BOUNCE MESSAGES
#
# See the discussion in the ADDRESS_REWRITING_README document.

# TRANSPORT MAP
#
# See the discussion in the ADDRESS_REWRITING_README document.

#alias_maps = dbm:/etc/aliases
alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases


#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases


#recipient_delimiter = +

#home_mailbox = Mailbox
#home_mailbox = Maildir/

# The mail_spool_directory parameter specifies the directory where
# UNIX-style mailboxes are kept. The default setting depends on the
# system type.
#
#mail_spool_directory = /var/mail
#mail_spool_directory = /var/spool/mail


#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"


#mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp


# To use the old cyrus deliver program you have to set:
#mailbox_transport = cyrus


#fallback_transport = lmtp:unix:/var/lib/imap/socket/lmtp
#fallback_transport =


#luser_relay = $***@other.host
#luser_relay = $***@other.host
#luser_relay = admin+$local

# JUNK MAIL CONTROLS
#
# The controls listed here are only a very small subset. The file
# SMTPD_ACCESS_README provides an overview.


#header_checks = regexp:/etc/postfix/header_checks


#fast_flush_domains = $relay_domains


#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)

#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 20


debug_peer_level = 2


#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain


debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5


# debugger_command =
# PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen
# -dmS $process_name gdb $daemon_directory/$process_name
# $process_id & sleep 1

# INSTALL-TIME CONFIGURATION INFORMATION
#
# The following parameters are used when installing a new Postfix version.
#
# sendmail_path: The full pathname of the Postfix sendmail command.
# This is the Sendmail-compatible mail posting interface.
#
sendmail_path = /usr/sbin/sendmail.postfix

# newaliases_path: The full pathname of the Postfix newaliases command.
# This is the Sendmail-compatible command to build alias databases.
#
newaliases_path = /usr/bin/newaliases.postfix

# mailq_path: The full pathname of the Postfix mailq command. This
# is the Sendmail-compatible mail queue listing command.
#
mailq_path = /usr/bin/mailq.postfix

# setgid_group: The group for mail submission and queue management
# commands. This must be a group name with a numerical group ID that
# is not shared with other accounts, not even with the Postfix account.
#
setgid_group = postdrop

# html_directory: The location of the Postfix HTML documentation.
#
html_directory = no

# manpage_directory: The location of the Postfix on-line manual pages.
#
manpage_directory = /usr/share/man

# sample_directory: The location of the Postfix sample configuration files.
# This parameter is obsolete as of Postfix 2.1.
#
sample_directory = /usr/share/doc/postfix-2.6.6/samples

# readme_directory: The location of the Postfix README files.
#
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES

"""

----------------------------------------------------------------------------
Loading...