|
aiko
|
 |
« on: August 31, 2006, 06:34:53 AM » |
|
Hi  I use webmin to manage my server at lunarpage. I'm trying to configure my server to use "Google Apps for Your Domain" - Mail System https://www.google.com/support/hosted Q: How can i configure my Mail Exchange (MX) DNS Records with webmin to use Google Apps? Thanks in advance, Aiko
|
|
|
|
« Last Edit: August 31, 2006, 09:40:59 AM by aiko »
|
Logged
|
|
|
|
|
perestrelka
|
 |
« Reply #1 on: August 31, 2006, 10:17:02 PM » |
|
To change MX records for your domain, go to Webmin. Then click on the Servers icon at the top of the page and navigate to the BIND DNS server. Click on your domain zone, remove all existing MX records and then add MX entries for Google servers listed on the page https://www.google.com/support/a/bin/answer.py?answer=33915Click apply the changes or restart BIND and all should be done.
|
|
|
|
|
Logged
|
Kind Regards, Vlad Artamonov
|
|
|
|
|
|
perestrelka
|
 |
« Reply #3 on: September 06, 2006, 11:01:53 AM » |
|
Hello,
You need to ensure that your mail server is not configured to accept email for your domain. This will enable it to send mail to the servers listed in the MX entries.
Please don't hesitate to ask if you have any further questions.
|
|
|
|
|
Logged
|
Kind Regards, Vlad Artamonov
|
|
|
|
aiko
|
 |
« Reply #4 on: September 06, 2006, 04:55:01 PM » |
|
Hi, Thanks for your reply  How can i configure my mail server to enable it to send mail to the servers listed in the MX entries? I use webmin. Aiko
|
|
|
|
|
Logged
|
|
|
|
|
perestrelka
|
 |
« Reply #5 on: September 06, 2006, 08:46:50 PM » |
|
The mail server will be sending email through MX servers when your domain is not listed as the domain it accepts email for. Please check the mail server configuration and remove the domain name from it if it is in there.
Also it would be usefull to review the mail logs. They usually are stored in the file named /var/log/maillog. This will give you the exact idea what is happening with emails sent to your domain.
|
|
|
|
|
Logged
|
Kind Regards, Vlad Artamonov
|
|
|
|
aiko
|
 |
« Reply #6 on: September 07, 2006, 04:30:11 AM » |
|
Hi again, Here is what is written in the mail logs when an email is sent from a script to test@mydomain.comThe email is forwarded to my gmail address (cf address mappings above) Sep 7 03:15:52 server sendmail[19865]: k87AFqYU019865: from=nobody, size=436, class=0, nrcpts=1, msgid=<200609071015.k87AFqYU019865@server.mydomain.com>, relay=nobody@localhost Sep 7 03:15:54 server sendmail[19872]: k87AFs9K019872: from=<nobody@server.mydomain.com>, size=676, class=0, nrcpts=1, msgid=<200609071015.k87AFqYU019865@server.mydomain.com>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1] Sep 7 03:15:55 server sendmail[19865]: k87AFqYU019865: to=test@mydomain.com, ctladdr=nobody (99/99), delay=00:00:03, xdelay=00:00:01, mailer=relay, pri=30436, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k87AFs9K019872 Message accepted for delivery) Sep 7 03:15:56 server sendmail[19874]: k87AFs9K019872: to=<test@mydomain.com>, ctladdr=<nobody@server.mydomain.com> (99/99), delay=00:00:02, xdelay=00:00:01, mailer=esmtp, pri=30676, relay=gmail-smtp-in.l.google.com. [64.233.185.114], dsn=2.0.0, stat=Sent (OK 1157624297 11si974998wrl) Please check the mail server configuration and remove the domain name from it if it is in there. I use webmin control panel. "server.mydomain.com" is on a lot of different pages. Which module should i use?  The Name Server Records page ( http://www.mydomain.com:10000/bind8/edit_recs.cgi?index=10&view=&type=NS ) shows: Name TTL Name Server mydomain.com. Default ns1.mydomain.com. mydomain.com. Default ns2.mydomain.com. Name TTL Name Server mydomain.com. Default server.mydomain.com. Aiko
|
|
|
|
« Last Edit: September 07, 2006, 04:31:57 AM by aiko »
|
Logged
|
|
|
|
|
perestrelka
|
 |
« Reply #7 on: September 07, 2006, 09:54:57 AM » |
|
Hi,
You need to modify mail server configuration only. What appears in the mail logs when you don't have address mapping configured?
You can send me an exceprt from the logs in a private message if you want.
Best Regards, Vlad
|
|
|
|
|
Logged
|
Kind Regards, Vlad Artamonov
|
|
|
|
aiko
|
 |
« Reply #8 on: September 07, 2006, 01:58:54 PM » |
|
Hi, Here is what appears in the mail logs when you don't have address mapping configured (email sent from a script): Sep 7 13:41:00 server sendmail[18272]: k87Kf0D6018272: from=nobody, size=422, class=0, nrcpts=1, msgid=<200609072041.k87Kf0D6018272@server.mydomain.com>, relay=nobody@localhost Sep 7 13:41:02 server sendmail[18295]: k87Kf2bi018295: <test@mydomain.com>... User unknown Sep 7 13:41:02 server sendmail[18272]: k87Kf0D6018272: to=test@mydomain.com, ctladdr=nobody (99/99), delay=00:00:02, xdelay=00:00:00, mailer=relay, pri=30422, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown Sep 7 13:41:02 server sendmail[18295]: k87Kf2bi018295: from=<nobody@server.mydomain.com>, size=422, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1] Sep 7 13:41:02 server sendmail[18272]: k87Kf0D6018272: k87Kf0D7018272: DSN: User unknown Sep 7 13:41:03 server sendmail[18295]: k87Kf2bk018295: from=<>, size=2343, class=0, nrcpts=1, msgid=<200609072041.k87Kf0D7018272@server.mydomain.com>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1] Sep 7 13:41:04 server sendmail[18272]: k87Kf0D7018272: to=nobody, delay=00:00:02, xdelay=00:00:01, mailer=relay, pri=31446, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k87Kf2bk018295 Message accepted for delivery) Sep 7 13:41:07 server sendmail[18298]: k87Kf2bk018295: to=<nobody@server.mydomain.com>, delay=00:00:04, xdelay=00:00:00, mailer=local, pri=32564, dsn=2.0.0, stat=Sent Sep 7 13:41:30 server sendmail[18393]: k87KfUDr018393: from=nobody, size=838, class=0, nrcpts=1, msgid=<a18d07534084b3eefcbbeb92d351ca3d@www.mydomain.com>, relay=nobody@localhost How can i remove the domain name? How can i do it with webmin  Here are my MX records: mydomain.com. MX IN 38400 ALT1.ASPMX.L.GOOGLE.COM. [Preference = 5] mydomain.com. MX IN 38400 ALT2.ASPMX.L.GOOGLE.COM. [Preference = 5] mydomain.com. MX IN 38400 ASPMX2.GOOGLEMAIL.COM. [Preference = 10] mydomain.com. MX IN 38400 ASPMX3.GOOGLEMAIL.COM. [Preference = 10] mydomain.com. MX IN 38400 ASPMX4.GOOGLEMAIL.COM. [Preference = 10] mydomain.com. MX IN 38400 ASPMX5.GOOGLEMAIL.COM. [Preference = 10] mydomain.com. MX IN 38400 ASPMX.L.GOOGLE.COM. [Preference = 1] mydomain.com. NS IN 38400 server.mydomain.com. mydomain.com. NS IN 38400 ns1.mydomain.com. mydomain.com. NS IN 38400 ns2.mydomain.com. Aiko
|
|
|
|
« Last Edit: September 07, 2006, 02:15:22 PM by aiko »
|
Logged
|
|
|
|
|
perestrelka
|
 |
« Reply #9 on: September 08, 2006, 10:37:13 AM » |
|
Plese answer the following questions to help me to identify the problem:
1. Is your domain listed in the /etc/mail/sendmail.mc? 2. Have you tried to configure sendmail on your server and do you have email accounts configured on the server besides the address aliases. 3. Are you able to send emails to any other domain from your scripts?
Thank you.
|
|
|
|
|
Logged
|
Kind Regards, Vlad Artamonov
|
|
|
|
aiko
|
 |
« Reply #10 on: September 09, 2006, 03:31:49 AM » |
|
Hi, 1. Is your domain listed in the /etc/mail/sendmail.mc? No  Here is the Sendmail M4 Configuration: Entry type Line in configuration file Move Other divert(-1)dnl Other dnl # Other dnl # This is the sendmail macro config file for m4. If you make changes to Other dnl # /etc/mail/sendmail.mc, you will need to regenerate the Other dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is Other dnl # installed and then performing a Other dnl # Other dnl # make -C /etc/mail Other dnl # Other include(`/usr/share/sendmail-cf/m4/cf.m4')dnl Other VERSIONID(`setup for Red Hat Linux')dnl OS Type OSTYPE(`linux')dnl Other dnl # Other dnl # default logging level is 9, you might want to set it higher to Other dnl # debug the configuration Other dnl # Other dnl define(`confLOG_LEVEL', `9')dnl Other dnl # Other dnl # Uncomment and edit the following line if your outgoing mail needs to Other dnl # be sent out through an external mail server: Other dnl # Other dnl define(`SMART_HOST',`smtp.your.provider') Other dnl # Define define(`confDEF_USER_ID',``8:12'')dnl Other dnl define(`confAUTO_REBUILD')dnl Define define(`confTO_CONNECT', `1m')dnl Define define(`confTRY_NULL_MX_LIST',true)dnl Define define(`confDONT_PROBE_INTERFACES',true)dnl Define define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl Define define(`ALIAS_FILE', `/etc/aliases')dnl Define define(`STATUS_FILE', `/var/log/mail/statistics')dnl Define define(`UUCP_MAILER_MAX', `2000000')dnl Define define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl Define define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl Define define(`confAUTH_OPTIONS', `A')dnl Other dnl # Other dnl # The following allows relaying if the user authenticates, and disallows Other dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links Other dnl # Other dnl define(`confAUTH_OPTIONS', `A p')dnl Other dnl # Other dnl # PLAIN is the preferred plaintext authentication method and used by Other dnl # Mozilla Mail and Evolution, though Outlook Express and other MUAs do Other dnl # use LOGIN. Other mechanisms should be used if the connection is not Other dnl # guaranteed secure. Other dnl # Other dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl Other dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl Other dnl # Other dnl # Rudimentary information on creating certificates for sendmail TLS: Other dnl # make -C /usr/share/ssl/certs usage Other dnl # or use the included makecert.sh script Other dnl # Other dnl define(`confCACERT_PATH',`/usr/share/ssl/certs') Other dnl define(`confCACERT',`/usr/share/ssl/certs/ca-bundle.crt') Other dnl define(`confSERVER_CERT',`/usr/share/ssl/certs/sendmail.pem') Other dnl define(`confSERVER_KEY',`/usr/share/ssl/certs/sendmail.pem') Other dnl # Other dnl # This allows sendmail to use a keyfile that is shared with OpenLDAP's Other dnl # slapd, which requires the file to be readble by group ldap Other dnl # Other dnl define(`confDONT_BLAME_SENDMAIL',`groupreadablekeyfile')dnl Other dnl # Other dnl define(`confTO_QUEUEWARN', `4h')dnl Other dnl define(`confTO_QUEUERETURN', `5d')dnl Other dnl define(`confQUEUE_LA', `12')dnl Other dnl define(`confREFUSE_LA', `18')dnl Define define(`confTO_IDENT', `0')dnl Other dnl FEATURE(delay_checks)dnl Feature FEATURE(`no_default_msa',`dnl')dnl Feature FEATURE(`smrsh',`/usr/sbin/smrsh')dnl Feature FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl Feature FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl Feature FEATURE(redirect)dnl Feature FEATURE(always_add_domain)dnl Feature FEATURE(use_cw_file)dnl Feature FEATURE(use_ct_file)dnl Other dnl # Other dnl # The -t option will retry delivery if e.g. the user runs over his quota. Other dnl # Feature FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl Feature FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl Feature FEATURE(`blacklist_recipients')dnl Other EXPOSED_USER(`root')dnl Other dnl # Other dnl # The following causes sendmail to only listen on the IPv4 loopback address Other dnl # 127.0.0.1 and not on any other network devices. Remove the loopback Other dnl # address restriction to accept email from the internet or intranet. Other dnl # Other DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl Other dnl # Other dnl # The following causes sendmail to additionally listen to port 587 for Other dnl # mail from MUAs that authenticate. Roaming users who can't reach their Other dnl # preferred sendmail daemon due to port 25 being blocked or redirected find Other dnl # this useful. Other dnl # Other dnl DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl Other dnl # Other dnl # The following causes sendmail to additionally listen to port 465, but Other dnl # starting immediately in TLS mode upon connecting. Port 25 or 587 followed Other dnl # by STARTTLS is preferred, but roaming clients using Outlook Express can't Other dnl # do STARTTLS on ports other than 25. Mozilla Mail can ONLY use STARTTLS Other dnl # and doesn't support the deprecated smtps; Evolution <1.1.1 uses smtps Other dnl # when SSL is enabled-- STARTTLS support is available in version 1.1.1. Other dnl # Other dnl # For this to work your OpenSSL certificates must be configured. Other dnl # Other dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl Other dnl # Other dnl # The following causes sendmail to additionally listen on the IPv6 loopback Other dnl # device. Remove the loopback address restriction listen to the network. Other dnl # Other dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl Other dnl # Other dnl # enable both ipv6 and ipv4 in sendmail: Other dnl # Other dnl DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Name=MTA-v6, Family=inet6') Other dnl # Other dnl # We strongly recommend not accepting unresolvable domains if you want to Other dnl # protect yourself from spam. However, the laptop and users on computers Other dnl # that do not have 24x7 DNS do need this. Other dnl # Feature FEATURE(`accept_unresolvable_domains')dnl Other dnl # Other dnl FEATURE(`relay_based_on_MX')dnl Other dnl # Other dnl # Also accept email sent to "localhost.localdomain" as local email. Other dnl # Other LOCAL_DOMAIN(`localhost.localdomain')dnl Other dnl # Other dnl # The following example makes mail from this host and any additional Other dnl # specified domains appear to be sent from mydomain.com Other dnl # Other dnl MASQUERADE_AS(`mydomain.com')dnl Other dnl # Other dnl # masquerade not just the headers, but the envelope as well Other dnl # Other dnl FEATURE(masquerade_envelope)dnl Other dnl # Other dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well Other dnl # Other dnl FEATURE(masquerade_entire_domain)dnl Other dnl # Other dnl MASQUERADE_DOMAIN(localhost)dnl Other dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl Other dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl Other dnl MASQUERADE_DOMAIN(mydomain.lan)dnl Mailer MAILER(smtp)dnl Mailer MAILER(procmail)dnl 2. Have you tried to configure sendmail on your server and do you have email accounts configured on the server besides the address aliases.How can i do it? Which module should i use?  3. Are you able to send emails to any other domain from your scripts?Yes 
|
|
|
|
|
Logged
|
|
|
|
|
perestrelka
|
 |
« Reply #11 on: September 09, 2006, 04:03:24 AM » |
|
I asked whether you tried to configure your mail server to be sure that your sendmail runs the default configuration  . One more question: is your domain pointed to the nameservers on your server or is it using some other DNS servers? Thanks for your patience
|
|
|
|
|
Logged
|
Kind Regards, Vlad Artamonov
|
|
|
|
aiko
|
 |
« Reply #12 on: September 09, 2006, 04:29:49 PM » |
|
My domain is pointed to the nameservers NS1.MYDOMAIN.COM & NS2.MYDOMAIN.COM
Aiko
|
|
|
|
|
Logged
|
|
|
|
|
perestrelka
|
 |
« Reply #13 on: September 10, 2006, 12:43:04 AM » |
|
Unfortunately, I fail to see why your server is unable to send email to your domain at gmail.com  . Your settings as you paste them here look correct and nothing should prevent your mail server from forwarding email for your domain. To continue the investigation we will need to know your domain name so that we can check the server ourselves. Please open a ticket by sending a email to the dedicated@lunarpages.com about this issue or send me the domain name in a private message and we will look into this situation further. Thanks.
|
|
|
|
|
Logged
|
Kind Regards, Vlad Artamonov
|
|
|
|
aiko
|
 |
« Reply #14 on: September 11, 2006, 06:59:41 AM » |
|
Hi again, I removed my domain name from the Local Domains list (Sendmail Configuration) and it works now  Aiko
|
|
|
|
|
Logged
|
|
|
|
|