LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-29-2015, 05:59 AM   #1
yadheesh
LQ Newbie
 
Registered: May 2015
Location: Bangalore
Distribution: Cent-OS
Posts: 18

Rep: Reputation: Disabled
How to send a mail from specific IP by using postfix SMTP account


Hi,

I currently have a dedicated server with 4 IPs and an SMTP account from SendGrid.

Now I am trying to send emails via those IPs through Postfix. I have configured Postfix with SMTP account bought from SendGrid.

Postfix Configuration:
Code:
relayhost = smtp.example.com:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = static:username:password
header_size_limit = 4096000
smtp_sasl_security_options = noanonymous


smtp_bind_address = 74.208.161.153
I can't send emails through IP address. However, I can send emails through localhost. I can also send emails through SMTP account.

How to send email via configured IP address?
 
Old 12-29-2015, 08:25 AM   #2
urello
LQ Newbie
 
Registered: Jul 2014
Posts: 13

Rep: Reputation: Disabled
Pls post output of
Code:
netstat -antep |egrep '(:25|:587)'
just to ensure that postfix really listen on this ip.
 
Old 12-29-2015, 11:49 AM   #3
yadheesh
LQ Newbie
 
Registered: May 2015
Location: Bangalore
Distribution: Cent-OS
Posts: 18

Original Poster
Rep: Reputation: Disabled
Netstat result

The result is

tcp 0 0 74.208.161.153:2505 0.0.0.0:* LISTEN 31256/master
tcp 0 0 74.208.144.136:2505 0.0.0.0:* LISTEN 31670/master
tcp 0 0 74.208.167.137:2505 0.0.0.0:* LISTEN 31462/master
tcp 0 0 50.21.183.177:2505 0.0.0.0:* LISTEN 6437/master


Here we are using 2505 for postfix
 
  


Reply

Tags
ip, postfix, smtp



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Send secret copy of sent mail - SMTP - postfix froxxiieee Linux - Server 4 07-02-2010 10:15 AM
Postfix send mail for specific domain through vpn tomazN Linux - Server 0 09-22-2008 05:25 AM
Why is PostFix sending mail using the email address of the smtp account? taigon Linux - Server 34 02-09-2007 01:09 AM
POSTFIX: Changed SMTP port - now can't send mail (long) cnjvh Linux - Software 1 07-13-2004 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration