1

Topic: Adding New Ip to A New Subdomain

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
======== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
====

Hello,

I would like to know how to assign new ip to a new subdomain in iredmail. I tried to add domain and created spf and dkim successfully but when i send email it takes the main ip of the server alloted to different virtual domain at initial setup. How can i do it?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Adding New Ip to A New Subdomain

*) You can sign all outgoing emails with the DKIM key of primary domain, it's just fine.
*) If you want to sign domain 'abc.com' with its own DKIM key, please update Amavisd config file to define it (search "dkim_key" in the file).

3

Re: Adding New Ip to A New Subdomain

The question was different. I added a new domain to the iredadmin and then i want to assign a new static ip to send emails. I tried everything but it always uses server main ip to send email

4

Re: Adding New Ip to A New Subdomain

Oops, sorry about my misunderstood. Please try this tutorial instead:
http://www.kutukupret.com/2010/01/02/po … p-address/

5

Re: Adding New Ip to A New Subdomain

I followed the article but when sending email i get errror

mail postfix/qmgr[5546]: warning: connect to transport private/emarketing_in: No such file or directory
Feb 16 01:15:34 mail postfix/error[8559]: 358B89B67B: to=<******@yahoo.com>, relay=none, delay=0.11, delays=0.07/0.01/0/0.04, dsn=4.3.0, status=deferred (mail transport unavailable)

emarketing_in was used as transport in master.cf

What to do now?

6

Re: Adding New Ip to A New Subdomain

I suggest checking with the tutorial again, if all is same, please show us what you exactly did and related config files. Also, output of command "postconf -n" is required for troubleshooting.

7

Re: Adding New Ip to A New Subdomain

Hello,

I will explain you the whole process in detail. Well my server main hostname is "mail.emmsupport.in". So while installation it asked to create virtual domain name and i entered "mailer.emmsupport.in".

You gave me link on how to setup dedicated ip sending mail for different domains:
http://www.kutukupret.com/2010/01/02/po … p-address/

I setup it Like Below.
-----------------------------------
Cd /etc/postfix
-----------------------------------
nano sdd_transport_maps.regexp

/@emailer.emmsupport\.in$/    emailer_in:
/@mailer.emmsupport\.in$/     mailer_in:
-------------------------------------------

Then

nano master.cf and I added below lines just after this line smtp      unix  -       -       n       -       -       smtp

emailer_in   unix -       -       n       -       -       smtp
       -o smtp_bind_address=198.100.148.229
       -o smtp_helo_name=emailer.emmsupport.in
       -o syslog_name=postfix-emailer_in

mailer_in   unix -       -       n       -       -       smtp
       -o smtp_bind_address=198.50.238.176
       -o smtp_helo_name=mailer.emmsupport.in
       -o syslog_name=postfix-mailer_in

Then i added path to regular expression:

nano main.cf

sender_dependent_default_transport_maps = regexp:/etc/postfix/sdd_transport_maps.regexp

Now when i send email from postmaster@emailer.emmsupport.in to one of my email sialbrijendra@yahoo.com It gives me following error below

Feb 20 11:29:00 mail amavis[3159]: (03159-04) Passed CLEAN {RelayedOutbound}, MYNETS/MYUSERS LOCAL [127.0.0.1]:37045 [127.0.0.1] <postmaster@emailer.emmsupport.in> -> <sialbrijendra@yahoo.com>, Message-ID: <f16eb091f87599469db790a0a1217168@emailer.emmsupport.in>, mail_id: 1rcOfTYmBmMD, Hits: -10, size: 576, queued_as: 80F399DBD6, dkim_new=dkim:emailer.emmsupport.in, 303 ms
Feb 20 11:29:00 mail postfix/smtp[7318]: fatal: unexpected command-line argument: emailer_in
Feb 20 11:29:00 mail postfix/smtp[7238]: 293499DBD4: to=<sialbrijendra@yahoo.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.5, delays=0.18/0/0/0.32, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 80F399DBD6)
Feb 20 11:29:00 mail postfix/qmgr[7218]: 293499DBD4: removed
Feb 20 11:29:01 mail postfix/qmgr[7218]: warning: private/smtp socket: malformed response
Feb 20 11:29:01 mail postfix/master[3017]: warning: process /usr/libexec/postfix/smtp pid 7318 exit status 1
Feb 20 11:29:01 mail postfix/master[3017]: warning: /usr/libexec/postfix/smtp: bad command startup -- throttling
Feb 20 11:29:01 mail postfix/error[7250]: 80F399DBD6: to=<sialbrijendra@yahoo.com>, relay=none, delay=1.1, delays=0.03/1/0/0.06, dsn=4.3.0, status=deferred (mail transport unavailable)

8

Re: Adding New Ip to A New Subdomain

Output of postconf -n

smtpd_tls_cert_file = /etc/pki/tls/certs/iRedMail_CA.pem
smtpd_tls_key_file = /etc/pki/tls/private/iRedMail.key
smtpd_tls_loglevel = 0
smtpd_tls_security_level = may
swap_bangpath = no
tls_random_source = dev:/dev/urandom
transport_maps = proxy:mysql:/etc/postfix/mysql/transport_maps_user.cf, proxy:mysql:/etc/postfix/mysql/transport_maps_domain.cf
unknown_local_recipient_reject_code = 550
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/virtual_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/catchall_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_catchall_maps.cf
virtual_gid_maps = static:2000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf
virtual_minimum_uid = 2000
virtual_transport = dovecot
virtual_uid_maps = static:2000

9

Re: Adding New Ip to A New Subdomain

*) is it all output message of command "postconf -n"? Miss many parameters.
*) No 'sender_dependent_default_transport_maps' in output of "postconf -n"?
*) As mentioned in iRedMail installer, you can not create a virtual mail domain name same as server hostname (mail.emmsupport.in).
*) Did you restart Postfix service after modified /etc/postfix/master.cf?

10

Re: Adding New Ip to A New Subdomain

Hello,

I did everything again but mail send but not from particular allotted ip. It just send mail from main server ip.
---------------------------------------------------------------------------
Main Server host: mailer.emmsupport.in
Main Server Ip: 198.100.148.229
---------------------------------------------------------------------------
---------------------------------------------------------------------------
Created two diff domain:

sendmail.emmsupport.in (Created at installation time)
mailsend.emmsupport.in (manually from ired admin)
---------------------------------------------------------------------------

---------------------------------------------------------------------------
Output of cat sdd_transport_maps.regexp
/@sendmail.emmsupport\.in$/      sendmail:
/@mailsend.emmsupport\.in$/      mailsend:
---------------------------------------------------------------------------

---------------------------------------------------------------------------
Output of cat master.cf

#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd
#submission inet n       -       n       -       -       smtpd
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#smtps     inet  n       -       n       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#628      inet  n       -       n       -       -       qmqpd
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       n       300     1       oqmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       n       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       n       -       -       smtp
        -o smtp_fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
retry     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
scache    unix  -       -       n       -       1       scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
#maildrop  unix  -       n       n       -       -       pipe
#  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# ====================================================================
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
#old-cyrus unix  -       n       n       -       -       pipe
#  flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
#
# ====================================================================
#
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
#
#cyrus     unix  -       n       n       -       -       pipe
#  user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
#
# ====================================================================
#
# See the Postfix UUCP_README file for configuration details.
#
#uucp      unix  -       n       n       -       -       pipe
#  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# ====================================================================
#
# Other external delivery methods.
#
#ifmail    unix  -       n       n       -       -       pipe
#  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
#
#bsmtp     unix  -       n       n       -       -       pipe
#  flags=Fq. user=bsmtp argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
#
#scalemail-backend unix -       n       n       -       2       pipe
#  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
#  ${nexthop} ${user} ${extension}
#
#mailman   unix  -       n       n       -       -       pipe
#  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
#  ${nexthop} ${user}
submission inet n       -       n       -       -       smtpd
  -o smtpd_tls_security_level=encrypt
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
#  -o content_filter=smtp-amavis:[127.0.0.1]:10026

# Use dovecot deliver program as LDA.
dovecot unix    -       n       n       -       -      pipe
    flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -f ${sender} -d ${user}@${domain} -m ${extension}

smtp-amavis unix -  -   -   -   2  smtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes
    -o max_use=20

127.0.0.1:10025 inet n  -   -   -   -  smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_delay_reject=no
    -o smtpd_tls_security_level=none
    -o smtpd_client_restrictions=permit_mynetworks,reject
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o smtpd_end_of_data_restrictions=
    -o mynetworks_style=host
    -o mynetworks=127.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000
    -o smtpd_client_connection_count_limit=0
    -o smtpd_client_connection_rate_limit=0
    -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_address_mappings

sendmail  unix -       -       n       -       -       smtp
   -o smtp_bind_address=198.100.148.229
   -o smtp_helo_name=sendmail.emmsupport.in
   -o syslog_name=postfix-sendmail

mailsend  unix -       -       n       -       -       smtp
   -o smtp_bind_address=198.50.238.176
   -o smtp_helo_name=mailsend.emmsupport.in
   -o syslog_name=postfix-mailsend

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

---------------------------------------------------------------------------
Below is the full output of postconf -n

alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_min_user = no
allow_percent_hack = no
biff = no
bounce_queue_lifetime = 4h
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
delay_warning_time = 0h
disable_vrfy_command = yes
enable_original_recipient = no
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
mailbox_command = /usr/libexec/dovecot/deliver
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
maximal_backoff_time = 4000s
maximal_queue_lifetime = 4h
message_size_limit = 15728640
minimal_backoff_time = 300s
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
mydomain = emmsupport.in
myhostname = mailer.emmsupport.in
mynetworks = 127.0.0.0/8
mynetworks_style = host
myorigin = mailer.emmsupport.in
newaliases_path = /usr/bin/newaliases.postfix
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
queue_directory = /var/spool/postfix
queue_run_delay = 300s
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
recipient_bcc_maps = proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_user.cf, proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_domain.cf
recipient_delimiter = +
relay_domains = $mydestination, proxy:mysql:/etc/postfix/mysql/relay_domains.cf
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sender_bcc_maps = proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf, proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_domain.cf
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_data_init_timeout = 240s
smtp_data_xfer_timeout = 600s
smtp_tls_CAfile = $smtpd_tls_CAfile
smtp_tls_security_level = may
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10031
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_helo_access pcre:/etc/postfix/helo_access.pcre
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, check_policy_service inet:127.0.0.1:7777, check_policy_service inet:127.0.0.1:10031, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = no
smtpd_sasl_local_domain =
smtpd_sasl_path = ./dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql/sender_login_maps.cf
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
smtpd_tls_CAfile = /etc/pki/tls/certs/iRedMail_CA.pem
smtpd_tls_cert_file = /etc/pki/tls/certs/iRedMail_CA.pem
smtpd_tls_key_file = /etc/pki/tls/private/iRedMail.key
smtpd_tls_loglevel = 0
smtpd_tls_security_level = may
swap_bangpath = no
tls_random_source = dev:/dev/urandom
transport_maps = proxy:mysql:/etc/postfix/mysql/transport_maps_user.cf, proxy:mysql:/etc/postfix/mysql/transport_maps_domain.cf
unknown_local_recipient_reject_code = 550
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/virtual_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/catchall_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_catchall_maps.cf
virtual_gid_maps = static:2000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf
virtual_minimum_uid = 2000
virtual_transport = dovecot
virtual_uid_maps = static:2000
---------------------------------------------------------------------------

11

Re: Adding New Ip to A New Subdomain

Below steps works for me:

1: Parameter "sender_dependent_default_transport_maps" is available in Postfix 2.7 or later, so please make sure your Postfix version is 2.7 or later releases:

# postconf mail_version
mail_version = 2.10.3

2: Add Postfix setting: sender_dependent_default_transport_maps. NOTE: I use pcre here, not regexp or hash.

sender_dependent_default_transport_maps = pcre:/etc/postfix/sdd_transport.pcre

3: Add file /etc/postfix/sdd_transport.pcre. NOTE: I use domain 'testing2.com' for testing, it will use transport 'custom2'.

/@testing2\.com$/ custom2:

4: Add custom transport in Postfix /etc/postfix/master.cf:

custom2  unix -       -       n       -       -       smtp
   -o smtp_bind_address=172.16.244.159
   -o smtp_helo_name=testing2.com
   -o syslog_name=postfix-custom2

5: Restart Postfix service.

Now try sending email to Gmail/Yahoo/Hotmail as user 'xxx@testing2.com', you can see syslog name 'postfix-custom2' in Postfix log file.

12 (edited by brijendrasial 2014-02-24 21:57:05)

Re: Adding New Ip to A New Subdomain

[root@mailer ~]# postconf mail_version
mail_version = 2.6.6

I tried to update postfix but this is the latest release according to centos.

What should i do now?

13

Re: Adding New Ip to A New Subdomain

You can try to rebuild Postfix RPM with the latest Postfix version. For example:

1: Download Postfix SRPM here: http://centos.alt.ru/pub/repository/centos/6/SRPMS/
2: Rebuild this SRPM to get installable RPM packages with command:

# rpmbuild --rebuild postfix-x.y.z.src.rpm

NOTE: you need to install package rpm-build first. Once you run above command, it will prompt you missing some dependencies, please install them, then try rpmbuild again.
3: It will build 1 or 2 RPM packages, you can upgrade running Postfix with this newly built one.

NOTE: If you're not familiar with building RPM packages, i'm willing to offer you paid support. Check this page:
http://www.iredmail.org/support.html

14

Re: Adding New Ip to A New Subdomain

Now i am getting error when sending mail

SMTP Error (250): Authentication failed.

maillog below:

Feb 24 10:53:11 mailer postfix/smtpd[3407]: connect from localhost.localdomain[127.0.0.1]
Feb 24 10:53:11 mailer roundcube: SMTP server does not support authentication ():
Feb 24 10:53:11 mailer postfix/smtpd[3407]: disconnect from localhost.localdomain[127.0.0.1]
Feb 24 10:53:11 mailer roundcube: SMTP Error: SMTP error: Authentication failure: SMTP server does not support authentication (Code: ) in /var/www/roundcubemail-0.9.5/program/include/rcmail.php on line 1035 (POST /mail/?_unlock=loading1393257189876&_lang=undefined?_task=mail&_action=send)

15

Re: Adding New Ip to A New Subdomain

everytime i try to rebuild i get error

Processing files: postfix-perl-scripts-2.10.0-1.el6.x86_64
Provides: postfix-pflogsumm = 2:2.10.0-1.el6
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <= 3.0.3-1
Requires: /usr/bin/perl perl(File::Find) perl(Getopt::Long) perl(Getopt::Std) perl(IO::File) perl(locale) perl(strict) perl(vars)
Obsoletes: postfix < 2:2.5.5-2 postfix-pflogsumm < 2:2.5.5-2
Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/postfix-2.10.0-1.el6.x86_64
Wrote: /root/rpmbuild/RPMS/x86_64/postfix-2.10.0-1.el6.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/postfix-perl-scripts-2.10.0-1.el6.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.haohYE
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd postfix-2.10.0
+ rm -rf /root/rpmbuild/BUILDROOT/postfix-2.10.0-1.el6.x86_64
+ exit 0
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.fMIuZz
+ umask 022
+ cd /root/rpmbuild/BUILD
+ rm -rf postfix-2.10.0
+ exit 0

16

Re: Adding New Ip to A New Subdomain

great its working now. pcre method is working dont know why hash is not working

17

Re: Adding New Ip to A New Subdomain

One more question, in header of email i see Received: from localhost (localhost.localdomain [127.0.0.1])

How can i remove this so that it shows the dedicated ip from which email was sent.

18

Re: Adding New Ip to A New Subdomain

Also sending mail from other ips includes main server hostname why?

see this header:
---------------------------------------------------------
Received: from localhost (localhost.localdomain [127.0.0.1])
    by mailer.emmsupport.in (Postfix) with ESMTP id 43EB01253B6
    for <sialbrijendra@yahoo.com>; Mon, 24 Feb 2014 15:54:02 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=
    mailsend.emmsupport.in; h=user-agent:message-id:subject:subject
    :to:from:from:date:date:content-transfer-encoding:content-type
    :content-type:mime-version; s=dkim; t=1393275240; x=1395867241;
     bh=RHI91NDg1Go8f6isolS2HCe2tXiflhd+gsgHAECfFTU=; b=OletvzilyuW5
    UcZ0b+umKjQhJHtCG9gIqg9TX9Gk3lWTA5SNOgfc3whlVXUi4Wy0FGjg4jcdOMX2
    gSwpOhIXqt42KvBK3q3U5JFbk9V/OOMY4Mat+DlXmAvN8S9utTEXHMtZsLYOO9uz
    5vBgcVyI6WkLPnfvugu30EvSi7kgVSo=
X-Virus-Scanned: amavisd-new at mailer.emmsupport.in
Received: from mailer.emmsupport.in ([127.0.0.1])
    by localhost (mailer.emmsupport.in [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id EAuicvguMqpP for <sialbrijendra@yahoo.com>;
    Mon, 24 Feb 2014 15:54:00 -0500 (EST)
Received: from mailer2.emmsupport.in (localhost.localdomain [127.0.0.1])
    by mailer.emmsupport.in (Postfix) with ESMTPA id 398E01253B2
    for <sialbrijendra@yahoo.com>; Mon, 24 Feb 2014 15:53:59 -0500 (EST)
---------------------------------------------------------------------------------------------------

why mailer.emmsupport.in gets included in this header? It should only have mailer2.emmsupport.in

19

Re: Adding New Ip to A New Subdomain

Does these mail headers really matter?

20

Re: Adding New Ip to A New Subdomain

Yes that matters.

I am sending mail from mailer2.emmsupport.in and header also includes mailer.emmsupport.in. Both have different ips and gmail will always consider as spam. If my ip had good reputation then it wont matter lot but with new ip it really matters. Also showing localhost for new ips in header is not good.

See the above header mail was sent from mailsend.emmsupport.in whose ip is 198.50.238.176 and in header its showing received from Received: from mailer.emmsupport.in ([127.0.0.1]). Mailer.emmsupport.in ip is 198.100.148.229. mailer.emmsupport.in is the main hostname of then server. This is always not considered right

21

Re: Adding New Ip to A New Subdomain

Are you sure Gmail marks your email as spam due to this mail header?

Usually MTA doesn't check "Received:" header at all.

22

Re: Adding New Ip to A New Subdomain

it actually matters. Is there any way to correct those?

23

Re: Adding New Ip to A New Subdomain

Just curious, how do you make sure Gmail marks your email as spam due to this mail header? Why does it matter?