Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 12-29-2015, 06:59 AM   #1
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


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:
relayhost =
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = static:username:password
header_size_limit = 4096000
smtp_sasl_security_options = noanonymous

smtp_bind_address =
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, 09:25 AM   #2
LQ Newbie
Registered: Jul 2014
Posts: 13

Rep: Reputation: Disabled
Pls post output of
netstat -antep |egrep '(:25|:587)'
just to ensure that postfix really listen on this ip.
Old 12-29-2015, 12:49 PM   #3
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* LISTEN 31256/master
tcp 0 0* LISTEN 31670/master
tcp 0 0* LISTEN 31462/master
tcp 0 0* LISTEN 6437/master

Here we are using 2505 for postfix


ip, postfix, smtp

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:15 AM
Postfix send mail for specific domain through vpn tomazN Linux - Server 0 09-22-2008 06:25 AM
Why is PostFix sending mail using the email address of the smtp account? taigon Linux - Server 34 02-09-2007 02:09 AM
POSTFIX: Changed SMTP port - now can't send mail (long) cnjvh Linux - Software 1 07-13-2004 02:40 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:22 PM.

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