PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : تغییر ip سیستم میل سرور



Amir.Mansoury
December 22nd, 2014, 14:38
با سلام

سروری موجود داریم با سیستم عامل CentOS و کنترل پانل CPanel

بر روی این سرور یک مشکل اساسی داریم و این است که دیتاسنتر پورت mail را بسته است و امکان ارسال یا فوروارد ایمیل از سرور نیست و تنها قادر به دریافت آن است.

آیا راه حلی موجود است که بتوان قیمت میل را به IP یک سرور دیگر در دیتاسنتر دیگرمان متصل کنیم و ارسال ایمیل ها از آن IP میسر شود؟

تشکر

farnood
December 23rd, 2014, 19:30
بهتر این است که شما از دیتا سنتر درخواست کنید که محدودیت برای شما بردارد غیر این صورت
مسیر زیر را پیگیری کنید در سی پنل:
Home »
Service Configuration »
Exim Configuration Manager
Domains and IPs

Reference /etc/mailips for outgoing SMTP connections [?]
را آن کنید

و به آدرس /etc/mailips بروید و ادیت کنید
و هرجا آی پی *: 111.111.111.111 مشاهده نمودید تغییر دهید به آی پی جدید
و حتما یادتون باشه مجوز آن در سرور دیگرتون تعریف شده باشه!

- - - Updated - - -

یا هم روش دیگر را هم میتونید برید

منبع: http://discussion.accuwebhost.com/cpanel-whm-control-panel/992-how-change-cpanel-mail-server-ip-address.html

Here are the step by step instructions for you to configure your exim mail server to use new IP address.

Step 1 : Shutdown the exim service.
# service exim stop or /etc/init.d/exim stop

Step 2 : Edit your exim configuration file.
# vi /etc/exim.conf

Step 3: go to "remote_smtp" section under "TRANSPORTS CONFIGURATION".
By default it would look like below:
Quote:
remote_smtp:
driver = smtp
interface = ${if exists {/etc/mailips}{${lookup{$sender_address_domain}lsearch{/etc/mailips}{$value}{}}}{}}
helo_data = ${if exists {/etc/mailhelo}{${lookup{$sender_address_domain}lsearch{/etc/mailhelo}{$value}{$primary_hostname}}}{$primary_ho stname}}

Step 4 : Remove or comment line containing "interface" and "helo_data" and add new "interface" to match with that of your new IP address. It should look like as follows:
Quote:
remote_smtp:
driver = smtp
interface = 12.12.12.12 # Your IP address.

Step 5 : Save your changes and exit out from your exim configuration file.

Note : Dont forget to set read only attributes on exim configuration file, so that it wont get reset to default automatically.

You can do it using following command:
# chattr +aui /etc/exim.conf

Step 6 : start exim service on your server.
# service exim restart or /etc/init.d/exim restart

Step 7 : Make sure to set reverse DNS for this new IP address to point a valid FQDN.

Step 8 : Try sending a test email and you will find that, it was sent using this new IP address configured under your exim configuration.

You can verify it by checking the header of new email under exim's log file i.e /var/log/exim_mainlog